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

broccoli-postcss

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-postcss - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

4

CHANGELOG.md
# master
# 2.1.0
* Writes a source map file when map property is present
# 2.0.0

@@ -4,0 +8,0 @@

@@ -61,2 +61,6 @@ var path = require('path');

fs.writeFileSync(toFilePath, result.css);
if (result.map) {
fs.writeFileSync(toFilePath + '.map', result.map)
}
})

@@ -63,0 +67,0 @@ .catch(function (error) {

2

package.json
{
"name": "broccoli-postcss",
"version": "2.0.0",
"version": "2.1.0",
"description": "Postcss compiler for Broccoli",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -30,2 +30,3 @@ # broccoli-postcss

```javascript
/* Brocfile.js */
var compileCSS = require('broccoli-postcss');

@@ -44,2 +45,3 @@ var cssnext = require('cssnext');

var outputTree = compileCSS(['styles'], 'app.css', 'app.css', plugins, map);
module.exports = outputTree;
```

@@ -53,6 +53,9 @@ var assert = require('assert');

afterEach(function () {
glob('tmp/*', function(er,files){
if(er) console.error(er)
else async.forEach(files, rimraf)
})
glob('tmp/*', function(err,files) {
if (err) {
console.error(er);
} else {
async.forEach(files, rimraf);
}
});
});

@@ -66,3 +69,6 @@

var content = fs.readFileSync(path.join(dir.directory, 'output.css'), 'utf8');
var sourceMap = JSON.parse(fs.readFileSync(path.join(dir.directory, 'output.css.map'), 'utf8'));
assert.strictEqual(content.trim(), 'a:before { content: "test"; }');
assert.strictEqual(sourceMap.mappings, 'AAAA,WAAY,gBAAgB,EAAE');
assert.deepEqual(warnings, []);

@@ -69,0 +75,0 @@ });

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