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 - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -