- adds check before displaying postcss warnings #31
- upgrade to node-sass@4.5.3
- any warnings generated by postcss will now be printed to stderr
- supply
fromandtooptions to postcss. Thanks to #28 - pretty print postcss syntax errors
- If autoInject=false or export=true and you want CSS as a string you should now just use
require('./foo.scss')instead ofrequire('./foo.scss').cssthanks to #29
- add autoInject.prepend #27
- fix a crash related to autoprefixer #25
Bump node-sass to ^3.10.1 from ^3.3.1 to ensure node 7 support.
Also upgraded some dev dependencies.
Breaking changes:
- removed
useNodeEnvoption; this was a bad idea.
New features:
- browserify's
--debugoption will also enable css sourcemaps. No extra configuration needed!
Breaking changes:
<link>tag injection removed.<style>tags are now the default #14opt.autoInjectmay now be one oftrue|false|'verbose'postcssis no longer a hard dependency. Install it yourself if you need it.
New features:
- added
useNodeEnvoption. Will enable sourcemaps ifprocess.env.NODE_ENV !== 'production'otherwise uses'compressed'output
Fixes:
- use pre-formatted error text from node-sass
- handle postcss errors
- sourcemaps should work #15
New features:
- [
2963d08] allowing for importer factory functions - this will let the importer state be reset if scssify is called several times within the same process, e.g. by factor-bundle
New features:
- [
002a0ad] load custom importer files: this means you can set a custom sass importer inpackage.json:browserify.transform, like the--importerflag when usingnode-sassdirectly
The project is no longer transpiled before publishing; Node.js 4.0.0 & up is now required. The package is also a bit smaller now since the lodash and browserify-transform-tools dependencies have been removed. Hurray for fewer dependencies!
New features:
- [
0d00236] add--exportoption, default:false, this means that raw css is no longer exported, greatly reducing file-size if you're just using autoInjection
Under new management. Chris Hoage has transferred this project over to me so here's a long awaited bugfix!