Eran (ev672n), Vosk | b9708a7 | 2018-08-07 14:15:05 +0300 | [diff] [blame] | 1 | 'use strict'; |
| 2 | // var CompressionPlugin = require('compression-webpack-plugin'); |
| 3 | |
| 4 | module.exports = { |
| 5 | devtool: 'source-map', |
| 6 | entry: { |
| 7 | js: ['./.tmp/concat/scripts/scripts.js', './.tmp_imploded/styles/main.css'] |
| 8 | }, |
| 9 | output: { |
| 10 | path: __dirname + '/dist/imploded', |
| 11 | filename: 'dcae-bundle.js' |
| 12 | }, |
| 13 | // plugins: [ |
| 14 | // new CompressionPlugin({ |
| 15 | // asset: "[path].gz[query]", |
| 16 | // algorithm: "gzip", |
| 17 | // test: /\.js$|\.css$|\.html$/ |
| 18 | // }) |
| 19 | // ], |
| 20 | module: { |
| 21 | loaders: [ |
| 22 | { test: /\.(js|jsx)$/, loaders: ['babel-loader'], exclude: /node_modules/ }, |
| 23 | |
| 24 | // required for font icons |
| 25 | { test: /\.(woff|woff2)(\?.*)?$/, loader: 'url-loader?limit=16384&mimetype=application/font-woff' }, |
| 26 | { test: /\.(ttf|eot|otf)(\?.*)?$/, loader: 'file-loader' }, |
| 27 | { test: /\.(png|jpg|svg)(\?.*)?$/, loader: 'url-loader?limit=16384' }, |
| 28 | { test: /\.css$/, loader: "style-loader!css-loader" } |
| 29 | ] |
| 30 | } |
| 31 | }; |