postcss-single-charset
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "postcss-single-charset", | ||
"description": "Pop first @charset rule in CSS file.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "Kyo Nagashima <hail2u@gmail.com> (https://kyonagashima.com/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -8,3 +8,2 @@ 'use strict'; | ||
grunt.registerMultiTask(pkg.name, pkg.description, function () { | ||
var fs = require('fs'); | ||
var postcss = require('postcss'); | ||
@@ -22,3 +21,3 @@ | ||
if (!fs.existsSync(src)) { | ||
if (!grunt.file.exists(src)) { | ||
grunt.log.warn('Source file "' + src + '" not found.'); | ||
@@ -37,6 +36,5 @@ | ||
).process( | ||
fs.readFileSync(src, 'utf8'), options | ||
grunt.file.read(src), options | ||
); | ||
fs.writeFileSync(dest, processed.css); | ||
grunt.file.write(dest, processed.css); | ||
grunt.log.writeln('File "' + dest + '" created.'); | ||
@@ -46,3 +44,3 @@ | ||
var map = dest + '.map'; | ||
fs.writeFileSync(map, processed.map); | ||
grunt.file.write(map, processed.map); | ||
grunt.log.writeln('File "' + map + '" created.'); | ||
@@ -49,0 +47,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
3920
61