I am using WebPack to concat js files and output to a dist folder. All this seems to work, however my problem is that I want to concat all the js files without extra webpack boostrap code
/******/ (function(modules) { // (/******/ (function(modules) { // webpackBootstrap)......
Is there anyway to prevent webpack from adding that code rather just take the plain js files and concat them (like gulp-concat).
Assuming you are using Webpack 4, drop the runtimeChunk to the config file so Webpack will generate a runtime .js file which contains only the webpackBootstrap part, leaving your output file clean:
optimization: { runtimeChunk: true, }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With