mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-10 17:33:24 +01:00
Add compress to common
This commit is contained in:
parent
c8a1352376
commit
7cdde4af4e
@ -63,7 +63,6 @@ module.exports = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}),
|
})
|
||||||
new CompressionPlugin()
|
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -6,5 +6,21 @@ module.exports = merge(common, {
|
|||||||
mode: 'production',
|
mode: 'production',
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
optimization: {
|
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