Breaking changes:
- Swap out the
node-sass
(deprecated) package forsass
(Dart Sass @^1.59.2) - Custom importer functions are only called after attempting to load the file from disk.
node-sass
passed imports to custom importers before loading them relative to the file in which the@import
appears. This behavior is considered incorrect because it violates the principle of locality, which says that it should be possible to reason about a stylesheet without knowing everything about how the entire system is set up. If a user tries to import a stylesheet relative to another stylesheet, that import should always work. It shouldn’t be possible for some configuration somewhere else to break it. See here for more detail: LegacySharedOptions.importer - The "file" event emits the entry file too
- Supports node 14, 16, 18
- adds check before displaying postcss warnings #31
- upgrade to [email protected]
- any warnings generated by postcss will now be printed to stderr
- supply
from
andto
options 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').css
thanks 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
useNodeEnv
option; this was a bad idea.
New features:
- browserify's
--debug
option will also enable css sourcemaps. No extra configuration needed!
Breaking changes:
<link>
tag injection removed.<style>
tags are now the default #14opt.autoInject
may now be one oftrue|false|'verbose'
postcss
is no longer a hard dependency. Install it yourself if you need it.
New features:
- added
useNodeEnv
option. 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--importer
flag when usingnode-sass
directly
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--export
option, 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!