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
Post a Comment