aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..aeecbdb
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,31 @@
+'use strict';
+// var CompressionPlugin = require('compression-webpack-plugin');
+
+module.exports = {
+ devtool: 'source-map',
+ entry: {
+ js: ['./.tmp/concat/scripts/scripts.js', './.tmp_imploded/styles/main.css']
+ },
+ output: {
+ path: __dirname + '/dist/imploded',
+ filename: 'dcae-bundle.js'
+ },
+ // plugins: [
+ // new CompressionPlugin({
+ // asset: "[path].gz[query]",
+ // algorithm: "gzip",
+ // test: /\.js$|\.css$|\.html$/
+ // })
+ // ],
+ module: {
+ loaders: [
+ { test: /\.(js|jsx)$/, loaders: ['babel-loader'], exclude: /node_modules/ },
+
+ // required for font icons
+ { test: /\.(woff|woff2)(\?.*)?$/, loader: 'url-loader?limit=16384&mimetype=application/font-woff' },
+ { test: /\.(ttf|eot|otf)(\?.*)?$/, loader: 'file-loader' },
+ { test: /\.(png|jpg|svg)(\?.*)?$/, loader: 'url-loader?limit=16384' },
+ { test: /\.css$/, loader: "style-loader!css-loader" }
+ ]
+ }
+};