From d3454e70a5855164d17c563fe15e8674b5a5ae2e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 22 Jul 2016 16:51:43 +0300 Subject: * drop jQuery dependency --- juick-www/webpack.config.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'juick-www/webpack.config.js') 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 -- cgit v1.2.3