Skip to content

wmr 3.0.0

Compare
Choose a tag to compare
@marvinhagemeister marvinhagemeister released this 18 Jun 07:21
· 463 commits to main since this release
690a784

Major Changes

  • 22150b3 #680 Thanks @marvinhagemeister! - Fix swapped usage of cwd vs root. Now, cwd always refers to the current working directory and root 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 or options.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

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