rmarscher / virtual-module-webpack-plugin

Adds the contents of a virtual file to webpack's cached file system without writing it to disk
174 stars 17 forks source link

contents can be string, object or function #10

Closed wujjpp closed 7 years ago

wujjpp commented 7 years ago

great plugin! and we can enhance the contents property in options: the contents attr in options, can be: string, object, function

rmarscher commented 7 years ago

Thanks! Looks good to me. We should probably add a note about this in the README and add extra test cases for the object and function uses. I'll bump the minor version in NPM as well. I will get to that in a few days and release it. If you have time to add integration tests, that would be appreciated, but I'll handle it otherwise.

rmarscher commented 7 years ago

Released in v0.2.0. Thanks again.