Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-single-charset

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-single-charset - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

tasks/single_charset.js

2

package.json
{
"name": "postcss-single-charset",
"description": "Pop first @charset rule in CSS file.",
"version": "0.1.0",
"version": "0.2.0",
"author": "Kyo Nagashima <hail2u@gmail.com> (https://kyonagashima.com/)",

@@ -6,0 +6,0 @@ "bugs": {

@@ -20,6 +20,42 @@ postcss-single-charset

var input = fs.readFileSync('input.css', 'utf8');
var output = postcss().use(require('postcss-single-charset')()).process(input).css;
var output = postcss().use(
require('postcss-single-charset')()
).process(input).css;
fs.writeFileSync('output.css', output);
### As Grunt plugin
This package also includes Grunt plugin. You can load like that:
grunt.loadNpmTasks('postcss-single-charset');
And configure like that:
grunt.initConfig({
single_charset: {
basic: {
files: {
'dest/basic.css': ['src/basic.css']
}
},
with_options: {
options: {
map: {
inline: false
}
},
files: {
'dest/with_options.css': ['src/with_options.css']
}
}
}
});
`options` are mainly for Source Maps. See [PostCSS document][1] for more
information.
LICENSE

@@ -29,1 +65,4 @@ -------

MIT: http://hail2u.mit-license.org/2015
[1]: https://github.com/postcss/postcss#source-map-1
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc