summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
blob: aeecbdb3a94c6c71470d03851dc4007ac19fa450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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" }
        ]
    }
};