From 1ab4a2f12cdc9ba52f7e7b51ceee9212c1aafb9c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 5 Sep 2016 14:49:06 +0300 Subject: www: enable csslint --- juick-www/package.json | 2 ++ juick-www/webpack.config.js | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'juick-www') 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: [ -- cgit v1.2.3