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.js17
1 files changed, 5 insertions, 12 deletions
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
index 0b833b04..cb36da08 100644
--- a/juick-www/webpack.config.js
+++ b/juick-www/webpack.config.js
@@ -15,24 +15,17 @@ module.exports = {
filename: "[name].js"
},
module: {
- preLoaders: [
- { test: /\.jsx?$/, loader: 'eslint', exclude: /node_modules/ },
- { test: /\.css$/, loader: 'csslint?failOnWarning=false', exclude: /node_modules/ }
- ],
loaders: [
+ { test: /\.jsx?$/, loader: 'eslint-loader', enforce: 'pre', exclude: /node_modules/, options: { failOnWarning: false, failOnError: true }},
+ { test: /\.css$/, loader: 'csslint-loader?failOnWarning=false', enforce: 'pre', exclude: /node_modules/ },
{ test: /killy.index\.js$/, loader: 'babel-loader', query: { presets: ['es2015'] }},
- { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
+ { test: /\.css$/, loader: ExtractTextPlugin.extract({ fallback: "style-loader", use: "css-loader" }) },
{ test: /\.png$/, loader: "url-loader?limit=10000000000" },
{ test: /\.svg$/, loader: "url-loader?limit=10000000000" }
]
},
plugins: [
- new ExtractTextPlugin("style.css", {
- allChunks: true
- })
+ new ExtractTextPlugin({ filename: "style.css", allChunks: true })
],
- eslint: {
- failOnWarning: false,
- failOnError: true
- },
+
} \ No newline at end of file