aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
blob: 3a689a2863b6a726a45c93a363fb54768161a12d (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
var webpack = require("webpack")
var globby = require("globby")
var ExtractTextPlugin = require("extract-text-webpack-plugin")
module.exports = {
    entry: {
        "scripts" : globby.sync([
            __dirname + "/src/main/static/*.*"
        ])
    },
    output: {
        path: __dirname + "/src/main/webapp",
        filename: "[name].js"
    },
    module: {
        loaders: [
            { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
            { test: /scripts\.js$/, exclude: /node_modules/, loader: "script!uglify" },
	]
    },
    plugins: [
        new ExtractTextPlugin("style.css", {
            allChunks: true
        })
    ]
}