aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
blob: ed041ee655845dff6bd76483090b8907d9e99bd1 (plain) (blame)
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
32
var webpack = require("webpack")
var globby = require("globby")
var ExtractTextPlugin = require("extract-text-webpack-plugin")
module.exports = {
    devtool: 'source-map',
    entry: {
        "scripts" : globby.sync([
            __dirname + "/src/main/static/*.*"
        ])
    },
    output: {
        path: __dirname + "/src/main/webapp",
        filename: "[name].js"
    },
    module: {
        preLoaders: [
            { test: /\.jsx?$/, loader: 'eslint', exclude: /node_modules/ }
        ],
        loaders: [
            { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") }
	]
    },
    plugins: [
        new ExtractTextPlugin("style.css", {
            allChunks: true
        })
    ],
    eslint: {
        failOnWarning: false,
        failOnError: true
    },
}