wmr 3.0.0
Major Changes
-
22150b3
#680 Thanks @marvinhagemeister! - Fix swapped usage ofcwd
vsroot
. Now,cwd
always refers to the current working directory androot
the web root to serve from (= usually cwd+/public).This change was done to reduce the amount of extra knowledge to be aware of when using WMR. It was a frequent source of confusion.
Before (2.x):
options.cwd -> /path/to/my-project/public options.root -> /path/to/my-project/
After (3.x):
options.cwd -> /path/to/my-project/ options.root -> /path/to/my-project/public
Migration guide:
If you used
options.cwd
oroptions.root
in one of your plugins you need to swap them. -
0f91e7f
#684 Thanks @marvinhagemeister! - Completely rewrite our stylesheet pipeline. All CSS files can now be intercepted from plugins allowing us to leverage the same pipeline that we use for production during development.- Fixes
.scss/.sass
not compiled on watch - Fixes nested
.scss/.sass
files not compiled with sass - Fixes
.scss/.sass
files not compiled when directly referenced in HTML - Fixes asset caching overwriting each others entries
- Adds groundwork for intercepting urls inside css for aliasing or resolving from
node_modules
- Fixes
Minor Changes
97c3ab5
#685 Thanks @marvinhagemeister! - Sass: Include imported urls and file path into plugin resolution. This allows sass to load aliased files for example.
Patch Changes
-
8c3993f
#676 Thanks @marvinhagemeister! - Ensure that built-in plugins only work on files they can handle -
cdf5179
#690 Thanks @marvinhagemeister! - Fix nested CSS HMR not working -
ea6606f
#691 Thanks @marvinhagemeister! - Fix CLI environment variables overwritten by.env
files