aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.d
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.d')
-rw-r--r--webpack.config.d/css.js2
-rw-r--r--webpack.config.d/minify.js5
2 files changed, 7 insertions, 0 deletions
diff --git a/webpack.config.d/css.js b/webpack.config.d/css.js
new file mode 100644
index 00000000..2b43a825
--- /dev/null
+++ b/webpack.config.d/css.js
@@ -0,0 +1,2 @@
+config.module.rules.push({ test: /\.css$/, loader: "style!css" });
+
diff --git a/webpack.config.d/minify.js b/webpack.config.d/minify.js
new file mode 100644
index 00000000..3bc8e884
--- /dev/null
+++ b/webpack.config.d/minify.js
@@ -0,0 +1,5 @@
+if (defined.PRODUCTION) {
+ config.plugins.push(new webpack.optimize.UglifyJsPlugin({
+ minimize: true
+ }));
+}