mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-15 11:37:57 +01:00
Add compress to common
This commit is contained in:
parent
e698d84f9c
commit
837802acda
@ -63,7 +63,6 @@ module.exports = {
|
||||
]
|
||||
}
|
||||
}]
|
||||
}),
|
||||
new CompressionPlugin()
|
||||
})
|
||||
]
|
||||
}
|
@ -6,5 +6,21 @@ module.exports = merge(common, {
|
||||
mode: 'production',
|
||||
devtool: 'source-map',
|
||||
optimization: {
|
||||
minimize: true }
|
||||
minimize: true
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [{
|
||||
from: 'public/*',
|
||||
to: '[name].[ext]',
|
||||
globOptions: {
|
||||
ignore: [
|
||||
'**/index.html'
|
||||
]
|
||||
}
|
||||
}]
|
||||
}),
|
||||
new CompressionPlugin()
|
||||
]
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user