Closed Jack-Works closed 3 years ago
Workaround:
Set config.output.futureEmitAssets = false
But this behavior will be default in webpack 5
Hold on! This doesn't get fixed!
Webpack will switch to this new behavior and we don't know if they will give us an option to fall back to the old behavior!!
@Jack-Works Correct path is:
config.output.futureEmitAssets=false
// TODO webpack 5 remove futureEmitAssets option and make it on by default
Copy @gajus @feorex @Jack-Works
In Angular cli 8.3 I got this error for ng build --prod
But ng build --prod --source-map=false worked for me
Note - this is removed in webpack 5 beta, so this plugin does not work in webpack 5.
I'm on Webpack 5. This plugin is broken for me :/.
It seems that this plugin is not needed anymore with webpack 5 (edit: since webpack-dev-server 3.1.10) 🎉
The webpack-dev-server now has a writeToDisk option and the same is available too with webpack-dev-middleware.
The middleware page even have this description:
If true, the option will instruct the module to write files to the configured location on disk as specified in your webpack config file. Setting writeToDisk: true won't change the behavior of the webpack-dev-middleware, and bundle files accessed through the browser will still be served from memory. This option provides the same capabilities as the WriteFilePlugin.
So thanks a lot @gajus for this excellent plugin, even if it's not needed anymore it will still be used for years to come in already existing projects :)
https://github.com/gajus/write-file-webpack-plugin/blob/af0192eaff311a6361264d9f3c538f47849b1dc3/src/WriteFileWebpackPlugin.js#L168
If
asset
is an instance of SizeOnlySource, it will throw an error on any method exceptsize
Breaking change: https://github.com/webpack/webpack/releases/tag/v4.29.0
Exception stack