-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.prod.js
49 lines (44 loc) · 1.06 KB
/
webpack.config.prod.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const commonConfig = require('./webpack.config.common');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const webpackMerge = require('webpack-merge');
module.exports = webpackMerge(commonConfig, {
mode: 'production',
performance: {
hints: false
},
optimization: {
splitChunks: {
chunks: 'all'
}
},
plugins: [
new FaviconsWebpackPlugin({
logo: './favicon.png',
emitStats: true,
prefix: 'icons/',
emitStats: false,
statsFilename: 'icons/stats.json',
inject: true,
title: 'Create Evergreen App',
background: '#466628',
icons: {
android: true,
appleIcon: false,
appleStartup: false,
coast: false,
favicons: true,
firefox: true,
opengraph: true,
twitter: true,
yandex: false,
windows: false
}
}),
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false
})
]
});