aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-22 16:51:43 +0300
committerGravatar Vitaly Takmazov2016-07-27 13:52:02 +0300
commitd3454e70a5855164d17c563fe15e8674b5a5ae2e (patch)
treefda0c9da5e44de736f0215b3d6c63872329b0544 /juick-www/webpack.config.js
parentdbc48e0d220107ac0887d21f2144665f4eea5aab (diff)
* drop jQuery dependency
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