systemjs-plugin-css
Advanced tools
Comparing version
@@ -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"); | ||
}); | ||
}) | ||
}); | ||
}); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4324131
0.01%2360
0.34%2
-33.33%