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

'hasOwnProperty' in javascript -

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

android - Unable to generate FCM token from dynamically instantiated Firebase -