-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.prod.js
executable file
·41 lines (36 loc) · 1.14 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
const commonConfig = require('./webpack.config.common');
// const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');
const WebpackMd5Hash = require('webpack-md5-hash');
const webpackMerge = require('webpack-merge');
module.exports = webpackMerge(commonConfig, {
plugins: [
new WebpackMd5Hash()
// new UglifyJsPlugin({
// beautify: false,
// mangle: { screw_ie8: true, keep_fnames: true }, // eslint-disable-line camelcase
// compress: { screw_ie8: true }, // eslint-disable-line camelcase
// comments: false
// })
// new FaviconsWebpackPlugin({
// logo: './components/bootstrap/images/favicon.png',
// emitStats: true,
// prefix: 'icons/',
// statsFilename: 'icons/stats.json',
// inject: true,
// title: 'The Greenhouse',
// background: '#efefef',
// icons: {
// android: true,
// appleIcon: true,
// appleStartup: true,
// coast: false,
// favicons: true,
// firefox: true,
// opengraph: true,
// twitter: true,
// yandex: true,
// windows: true
// }
// }),
]
});