Releases: bholloway/resolve-url-loader
3.1.2
4.0.0-alpha.1
- Updated dependencies.
- Better resolution of the original source location - You can more successfully use
url()
in variables and mixins. Dependencies now accept a wider range and explicit dependency onrework
andrework-visit
has been removed. - The
engine
option is deprecated which means the oldrework
engine is deprecated. - The
keepQuery
behaviour is now the default, thekeepQuery
option has been removed. - The
absolute
option has been removed. - The
join
option has changed.
3.1.0
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: ''
.
Attempts option to opt-out of file search "magic"
Full file search is still the default, for backwards compatibility.
However you may now set attempts=1
to curtail the search to just the immediate file.
Bugfix / basic optimisation - ignore http(s) URIs
We have always ignored data:
URIs.
This change ignores explicit http:
and https:
URIs in the same way.
Fix loaderUtils deprecation warning
2.0.2 fix deprecation warning, bump patch version
Webpack 2, less-loader, sass-loader 6
2.0.0 bump major version: support less-loader, sass-loader@>=6.0.0
keepQuery option
1.5.0 bump minor version: keepQuery option
support relative output paths
1.4.3 Merge remote-tracking branch 'origin/master'