Passed
Push — master ( 68c19f...405a00 )
by Stéphan
02:30 queued 10s
created

webpack.config.js (1 issue)

1
const webpack = require('webpack');
2
3
module.exports = {
4
    devServer: {
5
        contentBase: './src',
6
        stats: {
7
            modules: false,
8
            cached: false,
9
            colors: true,
10
            chunk: false,
11
        },
12
    },
13
    devtool: 'source-map',
14
    entry: './src/mixin.js',
15
    module: {
16
        rules: [
17
            {
18
                enforce: 'pre',
19
                test: /\.(js)$/,
20
                loader: 'eslint-loader',
21
                exclude: /node_modules/,
22
            },
23
            {
24
                test: /\.(js)$/,
25
                exclude: /node_modules/,
26
                use: ['babel-loader'],
27
            },
28
        ],
29
    },
30
    output: {
31
        path: __dirname + '/dist',
0 ignored issues
show
Consider using the path module for constructing paths since they are otherwise not cross-OS compatible.
Loading history...
32
        filename: 'mixin.js',
33
    },
34
    plugins: [
35
        new webpack.optimize.OccurrenceOrderPlugin(true),
36
    ],
37
    resolve: {
38
        extensions: ['*', '.js'],
39
    },
40
    stats: {
41
        colors: true,
42
    },
43
    target:    'web',
44
};
45