aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack
diff options
context:
space:
mode:
authorGuillaume2017-10-11 15:00:32 +0200
committerGuillaume2017-10-11 15:00:32 +0200
commitf6a8cbefbc291eff9f85c1fd7ad4e2c90fa3452f (patch)
tree537d2a5cbe3e27cf08f75a00ed7b10a62b612475 /config/webpack
parent57186e9378956f4dcb925b4ce18f6c32e7293dbe (diff)
downloadchouette-core-f6a8cbefbc291eff9f85c1fd7ad4e2c90fa3452f.tar.bz2
add dev and staging file for wepack config, modify spec task
Diffstat (limited to 'config/webpack')
-rw-r--r--config/webpack/dev.js12
-rw-r--r--config/webpack/staging.js12
2 files changed, 24 insertions, 0 deletions
diff --git a/config/webpack/dev.js b/config/webpack/dev.js
new file mode 100644
index 000000000..97b6a77ff
--- /dev/null
+++ b/config/webpack/dev.js
@@ -0,0 +1,12 @@
+const environment = require('./environment')
+
+environment.plugins.set(
+ 'UglifyJs',
+ new webpack.optimize.UglifyJsPlugin({
+ compress: {
+ warnings: false
+ }
+ })
+)
+
+module.exports = environment.toWebpackConfig() \ No newline at end of file
diff --git a/config/webpack/staging.js b/config/webpack/staging.js
new file mode 100644
index 000000000..97b6a77ff
--- /dev/null
+++ b/config/webpack/staging.js
@@ -0,0 +1,12 @@
+const environment = require('./environment')
+
+environment.plugins.set(
+ 'UglifyJs',
+ new webpack.optimize.UglifyJsPlugin({
+ compress: {
+ warnings: false
+ }
+ })
+)
+
+module.exports = environment.toWebpackConfig() \ No newline at end of file