New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

systemjs-plugin-css

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs-plugin-css - npm Package Compare versions

Comparing version

to
0.1.31

2

css-plugin-base-builder.js

@@ -158,4 +158,4 @@ var fs = require('@node/fs');

if (loader.separateCSS) {
var outFile = path.resolve(outputOpts.outFile).replace(/\.js$/, '.css');
if (outputOpts.sourceMaps) {
var outFile = path.resolve(outputOpts.outFile).replace(/\.js$/, '.css');
fs.writeFileSync(outFile + '.map', result.map.toString());

@@ -162,0 +162,0 @@ cssOutput += '\n/*# sourceMappingURL=' + outFile.split(/[\\/]/).pop() + '.map*/';

{
"name": "systemjs-plugin-css",
"version": "0.1.30",
"version": "0.1.31",
"main": "css",
"registry": "jspm",
"scripts": {
"test": "mocha --harmony test/test.js",
"build": "cd build-post-css && ./build.sh"
"test": "mocha --harmony test/test.js",
"build": "cd build-post-css && ./build.sh",
"phantom-test": "phantomjs test/phantom.js"
},

@@ -19,6 +20,3 @@ "devDependencies": {

"systemjs-builder": "^0.15.17"
},
"scripts": {
"phantom-test": "phantomjs test/phantom.js"
}
}

@@ -36,3 +36,12 @@ var fs = require('fs')

})
it('Should support separateCSS: true and sourceMaps: false', function() {
var builder = new Builder();
builder.config(System.getConfig());
builder.config({ separateCSS: true });
return builder.bundle('test/data/test.css!', {sourceMaps: false, minify: false, outFile: 'test/bundle.js'}).then((results) => {
return expect(results.source).to.contain("test/data/test.css!css.js");
});
})
});
});