aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
diff options
context:
space:
mode:
authorGravatar KillyMXI2017-06-21 21:52:48 +0300
committerGravatar KillyMXI2017-06-21 21:52:48 +0300
commit65fff47182d07729769d3f8629b2ea75f6c8018e (patch)
tree581e74c3d45f947919037ed645b64aab46358e8f /juick-www/webpack.config.js
parent0b6a7c341ecf0dc04f9708f727b8cc134dbd7e85 (diff)
juick-www: replaced csslint with stylelint
Diffstat (limited to 'juick-www/webpack.config.js')
-rw-r--r--juick-www/webpack.config.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
index c05579ea..383c62a5 100644
--- a/juick-www/webpack.config.js
+++ b/juick-www/webpack.config.js
@@ -1,6 +1,7 @@
var webpack = require("webpack")
var globby = require("globby")
var ExtractTextPlugin = require("extract-text-webpack-plugin")
+var StyleLintPlugin = require('stylelint-webpack-plugin')
module.exports = {
devtool: 'source-map',
entry: {
@@ -18,13 +19,13 @@ module.exports = {
loaders: [
{ test: /\.jsx?$/, loader: 'eslint-loader', enforce: 'pre', exclude: /node_modules/, options: { failOnWarning: false, failOnError: true }},
{ test: /\.js$/, loader: 'babel-loader', query: { presets: ['es2015'] }},
- { test: /\.css$/, loader: 'csslint-loader?failOnWarning=false', enforce: 'pre', exclude: /node_modules/ },
{ 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 StyleLintPlugin({ configFile: '.stylelintrc.json', context: 'src/main/static', files: ['**/*.css'], emitErrors: false }),
new ExtractTextPlugin({ filename: "style.css", allChunks: true })
],