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 }, }