Turn on terserOptions.safari10
This commit is contained in:
parent
d867ca8477
commit
764475b2a5
File diff suppressed because one or more lines are too long
@ -54,6 +54,7 @@
|
||||
"webpack": "^4.25.1",
|
||||
"webpack-dev-middleware": "^3.4.0",
|
||||
"webpack-hot-middleware": "^2.24.3",
|
||||
"webpack-plugin-hash-output": "^3.1.0",
|
||||
"workbox-webpack-plugin": "^3.6.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -4,6 +4,7 @@ var postcssPresetEnv = require('postcss-preset-env');
|
||||
var cssnano = require('cssnano');
|
||||
var TerserPlugin = require('terser-webpack-plugin');
|
||||
var { InjectManifest } = require('workbox-webpack-plugin');
|
||||
var HashOutputPlugin = require('webpack-plugin-hash-output');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
@ -12,8 +13,8 @@ module.exports = {
|
||||
boot: './js/boot'
|
||||
},
|
||||
output: {
|
||||
filename: '[name].[chunkhash:8].js',
|
||||
chunkFilename: '[name].[chunkhash:8].js',
|
||||
filename: '[name].[chunkhash].js',
|
||||
chunkFilename: '[name].[chunkhash].js',
|
||||
publicPath: '/'
|
||||
},
|
||||
resolve: {
|
||||
@ -75,8 +76,8 @@ module.exports = {
|
||||
},
|
||||
plugins: [
|
||||
new MiniCssExtractPlugin({
|
||||
filename: '[name].[contenthash:8].css',
|
||||
chunkFilename: '[name].[contenthash:8].css'
|
||||
filename: '[name].[contenthash].css',
|
||||
chunkFilename: '[name].[contenthash].css'
|
||||
}),
|
||||
new InjectManifest({
|
||||
swSrc: './js/sw.js',
|
||||
@ -89,10 +90,19 @@ module.exports = {
|
||||
/^boot.*\.js$/,
|
||||
/^runtime.*\.js$/
|
||||
]
|
||||
})
|
||||
}),
|
||||
new HashOutputPlugin()
|
||||
],
|
||||
optimization: {
|
||||
minimizer: [new TerserPlugin()],
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
safari10: true
|
||||
},
|
||||
cache: true,
|
||||
parallel: true
|
||||
})
|
||||
],
|
||||
splitChunks: {
|
||||
chunks: 'all',
|
||||
cacheGroups: {
|
||||
|
@ -10029,6 +10029,11 @@ webpack-log@^2.0.0:
|
||||
ansi-colors "^3.0.0"
|
||||
uuid "^3.3.2"
|
||||
|
||||
webpack-plugin-hash-output@^3.1.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/webpack-plugin-hash-output/-/webpack-plugin-hash-output-3.1.0.tgz#160bb42dd5b3d6f6e05201a722cf553c3687f95c"
|
||||
integrity sha1-Fgu0LdWz1vbgUgGnIs9VPDaH+Vw=
|
||||
|
||||
webpack-sources@^1.1.0, webpack-sources@^1.3.0:
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.3.0.tgz#2a28dcb9f1f45fe960d8f1493252b5ee6530fa85"
|
||||
|
Loading…
Reference in New Issue
Block a user