aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-05-19 17:19:58 +0300
committerGravatar Vitaly Takmazov2017-05-19 17:19:58 +0300
commita25e89695590f87c44056bb42a40902abbc2c838 (patch)
tree639a4f1bfab74fa614a2fbd6dad9a5d4a5363272 /juick-www/webpack.config.js
parentfc5b23749b5c593ca4dc90ae4d0a1686c4ec92ea (diff)
juick-www: webpack 2
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