-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.prod.js
More file actions
executable file
·38 lines (33 loc) · 1.03 KB
/
webpack.config.prod.js
File metadata and controls
executable file
·38 lines (33 loc) · 1.03 KB
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
// TODO enable uglification - https://stackoverflow.com/questions/39329867/uglifyjs-throws-error-unexpected-token-operator
const commonConfig = require('./webpack.config.common');
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const webpack = require('webpack');
const WebpackMd5Hash = require('webpack-md5-hash');
const webpackMerge = require('webpack-merge');
module.exports = webpackMerge(commonConfig, {
plugins: [
new WebpackMd5Hash(),
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
}
}),
new webpack.optimize.ModuleConcatenationPlugin()
]
});