blob: d72c23e5db5252cf1356898cd7febec5f03f55b0 (
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: "expose?Juick" },
]
},
plugins: [
new ExtractTextPlugin("style.css", {
allChunks: true
})
]
}
|