diff options
author | Vitaly Takmazov | 2016-09-05 14:49:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-09-05 14:49:06 +0300 |
commit | 1ab4a2f12cdc9ba52f7e7b51ceee9212c1aafb9c (patch) | |
tree | 1f26f7ce66eb533881f3652cc17e15c6f9879620 | |
parent | 9e09af9ca7abd1b1bce254a7734b9a0ced999692 (diff) |
www: enable csslint
-rw-r--r-- | juick-www/package.json | 2 | ||||
-rw-r--r-- | juick-www/webpack.config.js | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/juick-www/package.json b/juick-www/package.json index f26580db..2eda35cd 100644 --- a/juick-www/package.json +++ b/juick-www/package.json @@ -13,6 +13,8 @@ "license": "AGPLv3", "devDependencies": { "css-loader": "^0.23.1", + "csslint": "^1.0.2", + "csslint-loader": "^1.0.0", "eslint": "^3.1.1", "eslint-loader": "^1.4.1", "extract-text-webpack-plugin": "^1.0.1", diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js index 86cc3bf0..27e4a28a 100644 --- a/juick-www/webpack.config.js +++ b/juick-www/webpack.config.js @@ -16,12 +16,13 @@ module.exports = { }, module: { preLoaders: [ - { test: /\.jsx?$/, loader: 'eslint', exclude: /node_modules/ } + { test: /\.jsx?$/, loader: 'eslint', exclude: /node_modules/ }, + { test: /\.css$/, loader: 'csslint?failOnWarning=false', exclude: /node_modules/ } ], loaders: [ { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") }, { test: /\.png$/, loader: "url-loader?limit=10000000000" }, - { test: /\.svg$/, loader: "url-loader?limit=10000000000" }, + { test: /\.svg$/, loader: "url-loader?limit=10000000000" } ] }, plugins: [ |