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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -