We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b7d493 commit 296224cCopy full SHA for 296224c
update-gh-pages.sh
@@ -5,7 +5,7 @@ set -eu
5
echo "Regenerating bundle."
6
7
rm -rf *.bundle.*
8
-npm run bundle
+NODE_ENV=production npm run bundle
9
10
echo "Cloning website into ./website/."
11
webpack.config.js
@@ -1,4 +1,7 @@
1
var _ = require('underscore');
2
+var webpack = require('webpack');
3
+
4
+var production = process.env.NODE_ENV === 'production';
var baseConfig = {
resolve: {
@@ -16,6 +19,16 @@ var baseConfig = {
16
19
}
17
20
]
18
21
},
22
+ plugins: [
23
+ ].concat(
24
+ production ? [
25
+ new webpack.optimize.UglifyJsPlugin({
26
+ compress: {
27
+ warnings: false
28
+ }
29
+ })
30
+ ] : []
31
+ ),
32
postcss: function () {
33
return [require('autoprefixer'), require('precss')];
34
0 commit comments