css-sniper
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -14,6 +14,14 @@ const fs = require('fs'); | ||
const file = `${baseUrl}/${fileUrl}`; | ||
let contents; | ||
if (definitions.length === 0) return { file: file.substring(0, file.indexOf('.css')) }; | ||
if (definitions.length === 0) { | ||
// Importing .css files has been deprecated in libsass: | ||
// https://github.com/sass/libsass/pull/2613 | ||
// (rationale in https://github.com/sass/libsass/issues/2611) | ||
contents = fs.readFileSync(file, 'utf-8'); | ||
} | ||
else { | ||
contents = parseFile(file, definitions); | ||
} | ||
let contents = parseFile(file, definitions); | ||
return { contents: contents }; | ||
@@ -20,0 +28,0 @@ } |
{ | ||
"name": "css-sniper", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "A node module and sass compiler, which lets you remove styles and selectors, while importing external CSS files.", | ||
@@ -23,6 +23,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"commander": "^2.14.1", | ||
"commander": "^2.15.1", | ||
"css-tree": "^1.0.0-alpha.28", | ||
"node-sass": "^4.7.2" | ||
"node-sass": "^4.9.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11132
13
354
Updatedcommander@^2.15.1
Updatednode-sass@^4.9.0