Merge pull request #8555 from ahocevar/no-mangling-for-workers
Do not minify examples that inject code into workers
This commit is contained in:
@@ -35,11 +35,8 @@ module.exports = {
|
|||||||
minimizer: [
|
minimizer: [
|
||||||
new UglifyJsPlugin({
|
new UglifyJsPlugin({
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
uglifyOptions: {
|
// Do not minify examples that inject code into workers
|
||||||
mangle: {
|
exclude: [/(color-manipulation|region-growing|raster)\.js/]
|
||||||
keep_fnames: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
runtimeChunk: {
|
runtimeChunk: {
|
||||||
|
|||||||
Reference in New Issue
Block a user