aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/webpack.config.js')
-rw-r--r--juick-www/webpack.config.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
index 3a689a28..ed041ee6 100644
--- a/juick-www/webpack.config.js
+++ b/juick-www/webpack.config.js
@@ -2,6 +2,7 @@ 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/*.*"
@@ -12,14 +13,20 @@ module.exports = {
filename: "[name].js"
},
module: {
+ preLoaders: [
+ { test: /\.jsx?$/, loader: 'eslint', exclude: /node_modules/ }
+ ],
loaders: [
- { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
- { test: /scripts\.js$/, exclude: /node_modules/, loader: "script!uglify" },
+ { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") }
]
},
plugins: [
new ExtractTextPlugin("style.css", {
allChunks: true
})
- ]
+ ],
+ eslint: {
+ failOnWarning: false,
+ failOnError: true
+ },
} \ No newline at end of file