Releases: reworkcss/rework-npm
Releases · reworkcss/rework-npm
1.0.0
Warning: a number of breaking changes are included in this release
- Dropped the
dir
option, always use directory fromposition.source
in the AST (see #10). You should provide thesource
option when parsing the CSS to get the right import directory. - Search the
alias
option for aliased directories when importing (see #15) - Never apply the
alias
config for relative imports (e.g.@import "./file";
) - Moved the repo to reworkcss/rework-npm
0.7.0
Release 0.3.0
- Accept an options object instead of the directory name. This is backwards compatible since the options value will be used as the directory name if it is a string.
- Allow a root directory to be specified that all file names are relative to.
Release 0.2.0
Source map support!
Now you can see exactly which file a rule was defined in when debugging in a browser that supports CSS source maps!
Everything just works for source maps. Simply use .toString({ sourcemap: true })
on the rework object instead of .toString()
. This generates source maps inline with the CSS. Note that you must use at least rework v0.20.
Release 0.0.2
- Only import files once