3.0.0 Postcss
Features
-
Use
postcss
parser by default. This is long overdue as the oldrework
parser doesn't cope with modern css. -
Lots of automated tests running actual webpack builds. If you have an interesting use-case let me know.
Breaking Changes
- Multiple options changed or deprecated.
- Removed file search "magic" in favour of
join
option. - Errors always fail and are no longer swallowed.
- Processing absolute asset paths requires
root
option to be set.
Migrating
Initially set option engine: 'rework'
for parity with your existing build. Once working you can remove this option or set engine: 'postcss'
explicitly.
Retain keepQuery
option if you are already using it.
The root
option now has a different meaning. Previously it limited file search. Now it is the base path for absolute or root-relative URIs, consistent with css-loader
. If you are already using it you can probably remove it.
If you build on Windows platform and your content contains absolute asset paths, then css-loader
could fail. The root
option here may fix the URIs before they get to css-loader
. Try to leave it unspecified, otherwise (windows only) set to empty string root: ''
.