Webpack 2 dynamic assets -


i started use webpack , need write plugin takes file source, parses , save new files webpack assets.

compilation.assets[filename] = {    source: () => buffer.from(source),    size: () => buffer.bytelength(source) }; 

this part works great , files created in dist folder, have problem request them, need register resolver can require these dynamic files path original file was?

thanks.


Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

c# - Update a combobox from a presenter (MVP) -