aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-12 10:24:51 +0300
committerGravatar Vitaly Takmazov2016-07-12 10:24:51 +0300
commit76cfd6d4f3b43e6e2b7af76841c584111f263aae (patch)
tree35c8b9d75a5edaea9bb6cd36cf7739e06034eb5a
parentd556681a773c8bd695ca58c325a132b3de2c0c44 (diff)
uglify js
-rw-r--r--juick-www/package.json2
-rw-r--r--juick-www/webpack.config.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/juick-www/package.json b/juick-www/package.json
index 833707b4..31bab35b 100644
--- a/juick-www/package.json
+++ b/juick-www/package.json
@@ -16,7 +16,9 @@
"expose-loader": "^0.7.1",
"extract-text-webpack-plugin": "^1.0.1",
"globby": "^4.1.0",
+ "script-loader": "^0.7.0",
"style-loader": "^0.13.1",
+ "uglify-loader": "^1.3.0",
"webpack": "^1.13.1"
}
}
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
index d72c23e5..3a689a28 100644
--- a/juick-www/webpack.config.js
+++ b/juick-www/webpack.config.js
@@ -14,7 +14,7 @@ module.exports = {
module: {
loaders: [
{ test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
- { test: /scripts\.js$/, exclude: /node_modules/, loader: "expose?Juick" },
+ { test: /scripts\.js$/, exclude: /node_modules/, loader: "script!uglify" },
]
},
plugins: [