Skip to content

Commit

Permalink
Merge pull request #224 from bholloway/release-v5
Browse files Browse the repository at this point in the history
Release v5
  • Loading branch information
bholloway committed Jan 17, 2022
2 parents 8091b2d + bf01da9 commit e2695cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 23 deletions.
14 changes: 4 additions & 10 deletions README.md
@@ -1,23 +1,17 @@
# Resolve URL Loader

We're working on **version 5** right now.
* Update `node` to recent LTS.
* Update `postcss` to latest (resolves security vulnerabilities).
* Remove `rework` completely.
The **version 5** is released. 🥳

Install `resolve-url-loader@next` today! 🤓
Install `resolve-url-loader@latest` in your project!

Read the [documentation](../v5/packages/resolve-url-loader/README.md).
Migrate using the [changelog](../v5/packages/resolve-url-loader/CHANGELOG.md).

----

The **version 4** is released. 🥳

Install `resolve-url-loader@latest` in your project!
The **version 4** is now maintenance only.

Read the [documentation](../v4-maintenance/packages/resolve-url-loader/README.md).
Migrate using the [changelog](../v4-maintenance/packages/resolve-url-loader/CHANGELOG.md).
Refer to [v4-maintenance](../v4-maintenance/packages/resolve-url-loader/README.md) branch.

----

Expand Down
21 changes: 10 additions & 11 deletions packages/resolve-url-loader/README.md
Expand Up @@ -41,7 +41,7 @@ When you use **fully relative paths** in `url()` statements then Webpack expects

To illustrate here are 3 simple examples of SASS and Webpack _without_ `resolve-url-loader`.

[![the basic problem](https://raw.githubusercontent.com/bholloway/resolve-url-loader/v4-maintenance/packages/resolve-url-loader/docs/basic-problem.svg)](docs/basic-problem.svg)
[![the basic problem](https://raw.githubusercontent.com/bholloway/resolve-url-loader/v5/packages/resolve-url-loader/docs/basic-problem.svg)](docs/basic-problem.svg)

The first 2 cases are trivial and work fine. The asset is specified in the root SCSS file and Webpack finds it.

Expand Down Expand Up @@ -99,8 +99,7 @@ rules: [
}, {
loader: 'sass-loader',
options: {
sourceMap: true,
sourceMapContents: false
sourceMap: true, // <-- !!IMPORTANT!!
}
}
]
Expand All @@ -113,14 +112,14 @@ rules: [

The loader should work without options but use these as required.

| option | type | default | | description |
|-------------|----------|-----------------------------------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `sourceMap` | boolean | `false` | | Generate an outgoing source-map. |
| `removeCR` | boolean | `true` Windows OS<br/>`false` otherwise | | Convert orphan CR to whitespace.<br/>See known issues below. |
| `debug` | boolean | `false` | | Display debug information. |
| `silent` | boolean | `false` | | Do **not** display warnings or deprecation messages. |
| `root` | string | _unset_ | | Similar to the (now defunct) option in `css-loader`.<br/>This string, possibly empty, is prepended to absolute URIs.<br/>Absolute URIs are only processed if this option is set. |
| `join` | function | _inbuilt_ | advanced | Custom join function.<br/>Use custom javascript to fix asset paths on a per-case basis.<br/>Refer to the [advanced features](docs/advanced-features.md) docs. |
| option | type | default | | description |
|-------------|----------|-----------------------------------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `sourceMap` | boolean | `false` | | Generate an outgoing source-map. |
| `removeCR` | boolean | `true` Windows OS<br/>`false` otherwise | | Convert orphan CR to whitespace.<br/>See known issues below. |
| `debug` | boolean | `false` | | Display debug information. |
| `silent` | boolean | `false` | | Do **not** display warnings or deprecation messages. |
| `root` | string | _unset_ | | Similar to the (now defunct) option in `css-loader`.<br/>This string, possibly empty, is prepended to absolute URIs.<br/>Absolute URIs are only processed if this option is set. |
| `join` | function | _inbuilt_ | advanced | Custom join function.<br/>Use custom javascript to fix asset paths on a per-case basis.<br/>Refer to the [advanced features](docs/advanced-features.md) docs. |

## Limitations

Expand Down
4 changes: 2 additions & 2 deletions packages/resolve-url-loader/package.json
@@ -1,6 +1,6 @@
{
"name": "resolve-url-loader",
"version": "5.0.0-beta.1",
"version": "5.0.0",
"description": "Webpack loader that resolves relative paths in url() statements based on the original source file",
"main": "index.js",
"repository": {
Expand All @@ -25,7 +25,7 @@
"bugs": {
"url": "https://github.com/bholloway/resolve-url-loader/issues"
},
"homepage": "https://github.com/bholloway/resolve-url-loader/tree/v4-maintenance/packages/resolve-url-loader",
"homepage": "https://github.com/bholloway/resolve-url-loader/tree/v5/packages/resolve-url-loader",
"engines": {
"node": ">=12"
},
Expand Down

0 comments on commit e2695cd

Please sign in to comment.