npm list --depth=0)node -v): v13.5.0npm -v):6.13.4npm run dev, no .LICENSE filesnpm run prod:/js/app.js 207 KiB 0 [emitted] /js/app
/js/app.js.LICENSE 120 bytes [emitted]
/js/app.js.br 46.6 KiB [emitted]
/js/manifest.js 1.46 KiB 1 [emitted] /js/manifest
/js/manifest.js.br 645 bytes [emitted]
/js/vendor.js 1.22 MiB 2 [emitted] [big] /js/vendor
/js/vendor.js.LICENSE 690 bytes [emitted]
/js/vendor.js.br 237 KiB [emitted]
Is this something new? It doesn't happen on a clean Laravel install. I don't mind including LICENSE files, but they also contain version numbers, that may not be a suitable for production?
Thanks.
The terser-webpack-plugin is creating these files. To disable it you need to customize the mix.options in your webpack.mix.js like this:
mix.options({
terser: {
extractComments: false,
}
})
@iamjoshkendall Thanks! That indeed stops creating the *.LICENSE files. :)
Most helpful comment
The
terser-webpack-pluginis creating these files. To disable it you need to customize themix.optionsin yourwebpack.mix.jslike this: