csslint-loader
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -5,2 +5,3 @@ 'use strict'; | ||
var fs = require('fs'); | ||
var stripJsonComments = require('strip-json-comments'); | ||
@@ -10,3 +11,3 @@ module.exports = function(options) { | ||
// Check the root folder to see if config file exists | ||
var config = fs.readFileSync(options.configFile); | ||
var config = fs.readFileSync(options.configFile, 'utf-8'); | ||
} catch (e) { | ||
@@ -18,3 +19,3 @@ console.log('There is no csslint config file'); | ||
try { | ||
var rules = JSON.parse(config); | ||
var rules = JSON.parse(stripJsonComments(config)); | ||
} catch (e) { | ||
@@ -21,0 +22,0 @@ throw new Error('Error parsing csslintrc: ' + e); |
{ | ||
"name": "csslint-loader", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "CSSLint loader for Webpack", | ||
@@ -27,2 +27,3 @@ "main": "index.js", | ||
"object-assign": "^2.0.0", | ||
"strip-json-comments": "^1.0.2", | ||
"text-table": "^0.2.0" | ||
@@ -29,0 +30,0 @@ }, |
7522
7
173
6
+ Addedstrip-json-comments@^1.0.2
+ Addedstrip-json-comments@1.0.4(transitive)