Skip to content

Commit 9aed7a8

Browse files
chore: update links (#1278)
1 parent aacb63d commit 9aed7a8

14 files changed

+52
-52
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This allows you to control the versions of all your dependencies and to choose w
5555
>
5656
> [Node Sass](https://github.com/sass/node-sass) does not work with [Yarn PnP](https://classic.yarnpkg.com/en/docs/pnp/) and doesn't support [@use rule](https://sass-lang.com/documentation/at-rules/use).
5757
58-
Chain the `sass-loader` with the [css-loader](https://github.com/webpack-contrib/css-loader) and the [style-loader](https://github.com/webpack-contrib/style-loader) to immediately apply all styles to the DOM, or with the [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) to extract it into a separate file.
58+
Chain the `sass-loader` with the [css-loader](https://github.com/webpack/css-loader) and the [style-loader](https://github.com/webpack/style-loader) to immediately apply all styles to the DOM, or with the [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) to extract it into a separate file.
5959

6060
Then add the loader to your webpack configuration. For example:
6161

@@ -887,7 +887,7 @@ module.exports = {
887887
```
888888

889889
If you want to edit the original Sass files inside Chrome, [there's a good blog post](https://medium.com/@toolmantim/getting-started-with-css-sourcemaps-and-in-browser-sass-editing-b4daab987fb0).
890-
Checkout [test/sourceMap](https://github.com/webpack-contrib/sass-loader/tree/main/test) for a working example.
890+
Checkout [test/sourceMap](https://github.com/webpack/sass-loader/tree/main/test) for a working example.
891891

892892
## Contributing
893893

@@ -904,10 +904,10 @@ If you're new here, please take a moment to review our contributing guidelines b
904904
[npm-url]: https://npmjs.com/package/sass-loader
905905
[node]: https://img.shields.io/node/v/sass-loader.svg
906906
[node-url]: https://nodejs.org
907-
[tests]: https://github.com/webpack-contrib/sass-loader/workflows/sass-loader/badge.svg
908-
[tests-url]: https://github.com/webpack-contrib/sass-loader/actions
909-
[cover]: https://codecov.io/gh/webpack-contrib/sass-loader/branch/main/graph/badge.svg
910-
[cover-url]: https://codecov.io/gh/webpack-contrib/sass-loader
907+
[tests]: https://github.com/webpack/sass-loader/workflows/sass-loader/badge.svg
908+
[tests-url]: https://github.com/webpack/sass-loader/actions
909+
[cover]: https://codecov.io/gh/webpack/sass-loader/branch/main/graph/badge.svg
910+
[cover-url]: https://codecov.io/gh/webpack/sass-loader
911911
[discussion]: https://img.shields.io/github/discussions/webpack/webpack
912912
[discussion-url]: https://github.com/webpack/webpack/discussions
913913
[size]: https://packagephobia.now.sh/badge?p=sass-loader

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"webpack",
99
"loader"
1010
],
11-
"homepage": "https://github.com/webpack-contrib/sass-loader",
12-
"bugs": "https://github.com/webpack-contrib/sass-loader/issues",
13-
"repository": "webpack-contrib/sass-loader",
11+
"homepage": "https://github.com/webpack/sass-loader",
12+
"bugs": "https://github.com/webpack/sass-loader/issues",
13+
"repository": "webpack/sass-loader",
1414
"funding": {
1515
"type": "opencollective",
1616
"url": "https://opencollective.com/webpack"

src/options.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"properties": {
55
"implementation": {
66
"description": "The implementation of the sass to be used.",
7-
"link": "https://github.com/webpack-contrib/sass-loader#implementation",
7+
"link": "https://github.com/webpack/sass-loader#implementation",
88
"anyOf": [
99
{
1010
"type": "string"
@@ -16,12 +16,12 @@
1616
},
1717
"api": {
1818
"description": "Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.",
19-
"link": "https://github.com/webpack-contrib/sass-loader#sassoptions",
19+
"link": "https://github.com/webpack/sass-loader#sassoptions",
2020
"enum": ["legacy", "modern", "modern-compiler"]
2121
},
2222
"sassOptions": {
2323
"description": "Options for `node-sass` or `sass` (`Dart Sass`) implementation.",
24-
"link": "https://github.com/webpack-contrib/sass-loader#sassoptions",
24+
"link": "https://github.com/webpack/sass-loader#sassoptions",
2525
"anyOf": [
2626
{
2727
"type": "object",
@@ -34,7 +34,7 @@
3434
},
3535
"additionalData": {
3636
"description": "Prepends/Appends `Sass`/`SCSS` code before the actual entry file.",
37-
"link": "https://github.com/webpack-contrib/sass-loader#additionaldata",
37+
"link": "https://github.com/webpack/sass-loader#additionaldata",
3838
"anyOf": [
3939
{
4040
"type": "string"
@@ -46,17 +46,17 @@
4646
},
4747
"sourceMap": {
4848
"description": "Enables/Disables generation of source maps.",
49-
"link": "https://github.com/webpack-contrib/sass-loader#sourcemap",
49+
"link": "https://github.com/webpack/sass-loader#sourcemap",
5050
"type": "boolean"
5151
},
5252
"webpackImporter": {
5353
"description": "Enables/Disables default `webpack` importer.",
54-
"link": "https://github.com/webpack-contrib/sass-loader#webpackimporter",
54+
"link": "https://github.com/webpack/sass-loader#webpackimporter",
5555
"type": "boolean"
5656
},
5757
"warnRuleAsWarning": {
5858
"description": "Treats the '@warn' rule as a webpack warning.",
59-
"link": "https://github.com/webpack-contrib/sass-loader#warnruleaswarning",
59+
"link": "https://github.com/webpack/sass-loader#warnruleaswarning",
6060
"type": "boolean"
6161
}
6262
},

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ function getPossibleRequests(
370370
}
371371

372372
// Keep in mind: ext can also be something like '.datepicker' when the true extension is omitted and the filename contains a dot.
373-
// @see https://github.com/webpack-contrib/sass-loader/issues/167
373+
// @see https://github.com/webpack/sass/issues/167
374374
const extension = path.extname(request).toLowerCase();
375375

376376
// Because @import is also defined in CSS, Sass needs a way of compiling plain CSS @imports without trying to import the files at compile time.
@@ -893,7 +893,7 @@ function normalizeSourceMap(map, rootContext) {
893893

894894
// node-sass returns POSIX paths, that's why we need to transform them back to native paths.
895895
// This fixes an error on windows where the source-map module cannot resolve the source maps.
896-
// @see https://github.com/webpack-contrib/sass-loader/issues/366#issuecomment-279460722
896+
// @see https://github.com/webpack/sass-loader/issues/366#issuecomment-279460722
897897

898898
newMap.sources = newMap.sources.map((source) => {
899899
const sourceType = getURLType(source);

test/__snapshots__/validate-options.test.js.no-node-sass.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`validate options should throw an error on the "additionalData" option w
55
- options.additionalData should be one of these:
66
string | function
77
-> Prepends/Appends \`Sass\`/\`SCSS\` code before the actual entry file.
8-
-> Read more at https://github.com/webpack-contrib/sass-loader#additionaldata
8+
-> Read more at https://github.com/webpack/sass-loader#additionaldata
99
Details:
1010
* options.additionalData should be a string.
1111
* options.additionalData should be an instance of function."
@@ -16,23 +16,23 @@ exports[`validate options should throw an error on the "api" option with "string
1616
- options.api should be one of these:
1717
"legacy" | "modern" | "modern-compiler"
1818
-> Switch between old and modern API for \`sass\` (\`Dart Sass\`) and \`Sass Embedded\` implementations.
19-
-> Read more at https://github.com/webpack-contrib/sass-loader#sassoptions"
19+
-> Read more at https://github.com/webpack/sass-loader#sassoptions"
2020
`;
2121

2222
exports[`validate options should throw an error on the "api" option with "true" value 1`] = `
2323
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
2424
- options.api should be one of these:
2525
"legacy" | "modern" | "modern-compiler"
2626
-> Switch between old and modern API for \`sass\` (\`Dart Sass\`) and \`Sass Embedded\` implementations.
27-
-> Read more at https://github.com/webpack-contrib/sass-loader#sassoptions"
27+
-> Read more at https://github.com/webpack/sass-loader#sassoptions"
2828
`;
2929

3030
exports[`validate options should throw an error on the "implementation" option with "() => {}" value 1`] = `
3131
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
3232
- options.implementation should be one of these:
3333
string | object {}
3434
-> The implementation of the sass to be used.
35-
-> Read more at https://github.com/webpack-contrib/sass-loader#implementation
35+
-> Read more at https://github.com/webpack/sass-loader#implementation
3636
Details:
3737
* options.implementation should be a string.
3838
* options.implementation should be an object:
@@ -44,7 +44,7 @@ exports[`validate options should throw an error on the "implementation" option w
4444
- options.implementation should be one of these:
4545
string | object {}
4646
-> The implementation of the sass to be used.
47-
-> Read more at https://github.com/webpack-contrib/sass-loader#implementation
47+
-> Read more at https://github.com/webpack/sass-loader#implementation
4848
Details:
4949
* options.implementation should be a string.
5050
* options.implementation should be an object:
@@ -56,7 +56,7 @@ exports[`validate options should throw an error on the "sassOptions" option with
5656
- options.sassOptions should be one of these:
5757
object {} | function
5858
-> Options for \`node-sass\` or \`sass\` (\`Dart Sass\`) implementation.
59-
-> Read more at https://github.com/webpack-contrib/sass-loader#sassoptions
59+
-> Read more at https://github.com/webpack/sass-loader#sassoptions
6060
Details:
6161
* options.sassOptions should be an object:
6262
object {}
@@ -68,7 +68,7 @@ exports[`validate options should throw an error on the "sassOptions" option with
6868
- options.sassOptions should be one of these:
6969
object {} | function
7070
-> Options for \`node-sass\` or \`sass\` (\`Dart Sass\`) implementation.
71-
-> Read more at https://github.com/webpack-contrib/sass-loader#sassoptions
71+
-> Read more at https://github.com/webpack/sass-loader#sassoptions
7272
Details:
7373
* options.sassOptions should be an object:
7474
object {}
@@ -79,7 +79,7 @@ exports[`validate options should throw an error on the "sourceMap" option with "
7979
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
8080
- options.sourceMap should be a boolean.
8181
-> Enables/Disables generation of source maps.
82-
-> Read more at https://github.com/webpack-contrib/sass-loader#sourcemap"
82+
-> Read more at https://github.com/webpack/sass-loader#sourcemap"
8383
`;
8484

8585
exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = `
@@ -134,12 +134,12 @@ exports[`validate options should throw an error on the "warnRuleAsWarning" optio
134134
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
135135
- options.warnRuleAsWarning should be a boolean.
136136
-> Treats the '@warn' rule as a webpack warning.
137-
-> Read more at https://github.com/webpack-contrib/sass-loader#warnruleaswarning"
137+
-> Read more at https://github.com/webpack/sass-loader#warnruleaswarning"
138138
`;
139139
140140
exports[`validate options should throw an error on the "webpackImporter" option with "string" value 1`] = `
141141
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
142142
- options.webpackImporter should be a boolean.
143143
-> Enables/Disables default \`webpack\` importer.
144-
-> Read more at https://github.com/webpack-contrib/sass-loader#webpackimporter"
144+
-> Read more at https://github.com/webpack/sass-loader#webpackimporter"
145145
`;

test/__snapshots__/validate-options.test.js.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`validate options should throw an error on the "additionalData" option w
55
- options.additionalData should be one of these:
66
string | function
77
-> Prepends/Appends \`Sass\`/\`SCSS\` code before the actual entry file.
8-
-> Read more at https://github.com/webpack-contrib/sass-loader#additionaldata
8+
-> Read more at https://github.com/webpack/sass-loader#additionaldata
99
Details:
1010
* options.additionalData should be a string.
1111
* options.additionalData should be an instance of function."
@@ -16,23 +16,23 @@ exports[`validate options should throw an error on the "api" option with "string
1616
- options.api should be one of these:
1717
"legacy" | "modern" | "modern-compiler"
1818
-> Switch between old and modern API for \`sass\` (\`Dart Sass\`) and \`Sass Embedded\` implementations.
19-
-> Read more at https://github.com/webpack-contrib/sass-loader#sassoptions"
19+
-> Read more at https://github.com/webpack/sass-loader#sassoptions"
2020
`;
2121

2222
exports[`validate options should throw an error on the "api" option with "true" value 1`] = `
2323
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
2424
- options.api should be one of these:
2525
"legacy" | "modern" | "modern-compiler"
2626
-> Switch between old and modern API for \`sass\` (\`Dart Sass\`) and \`Sass Embedded\` implementations.
27-
-> Read more at https://github.com/webpack-contrib/sass-loader#sassoptions"
27+
-> Read more at https://github.com/webpack/sass-loader#sassoptions"
2828
`;
2929

3030
exports[`validate options should throw an error on the "implementation" option with "() => {}" value 1`] = `
3131
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
3232
- options.implementation should be one of these:
3333
string | object {}
3434
-> The implementation of the sass to be used.
35-
-> Read more at https://github.com/webpack-contrib/sass-loader#implementation
35+
-> Read more at https://github.com/webpack/sass-loader#implementation
3636
Details:
3737
* options.implementation should be a string.
3838
* options.implementation should be an object:
@@ -44,7 +44,7 @@ exports[`validate options should throw an error on the "implementation" option w
4444
- options.implementation should be one of these:
4545
string | object {}
4646
-> The implementation of the sass to be used.
47-
-> Read more at https://github.com/webpack-contrib/sass-loader#implementation
47+
-> Read more at https://github.com/webpack/sass-loader#implementation
4848
Details:
4949
* options.implementation should be a string.
5050
* options.implementation should be an object:
@@ -56,7 +56,7 @@ exports[`validate options should throw an error on the "sassOptions" option with
5656
- options.sassOptions should be one of these:
5757
object {} | function
5858
-> Options for \`node-sass\` or \`sass\` (\`Dart Sass\`) implementation.
59-
-> Read more at https://github.com/webpack-contrib/sass-loader#sassoptions
59+
-> Read more at https://github.com/webpack/sass-loader#sassoptions
6060
Details:
6161
* options.sassOptions should be an object:
6262
object {}
@@ -68,7 +68,7 @@ exports[`validate options should throw an error on the "sassOptions" option with
6868
- options.sassOptions should be one of these:
6969
object {} | function
7070
-> Options for \`node-sass\` or \`sass\` (\`Dart Sass\`) implementation.
71-
-> Read more at https://github.com/webpack-contrib/sass-loader#sassoptions
71+
-> Read more at https://github.com/webpack/sass-loader#sassoptions
7272
Details:
7373
* options.sassOptions should be an object:
7474
object {}
@@ -79,7 +79,7 @@ exports[`validate options should throw an error on the "sourceMap" option with "
7979
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
8080
- options.sourceMap should be a boolean.
8181
-> Enables/Disables generation of source maps.
82-
-> Read more at https://github.com/webpack-contrib/sass-loader#sourcemap"
82+
-> Read more at https://github.com/webpack/sass-loader#sourcemap"
8383
`;
8484

8585
exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = `
@@ -134,12 +134,12 @@ exports[`validate options should throw an error on the "warnRuleAsWarning" optio
134134
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
135135
- options.warnRuleAsWarning should be a boolean.
136136
-> Treats the '@warn' rule as a webpack warning.
137-
-> Read more at https://github.com/webpack-contrib/sass-loader#warnruleaswarning"
137+
-> Read more at https://github.com/webpack/sass-loader#warnruleaswarning"
138138
`;
139139
140140
exports[`validate options should throw an error on the "webpackImporter" option with "string" value 1`] = `
141141
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
142142
- options.webpackImporter should be a boolean.
143143
-> Enables/Disables default \`webpack\` importer.
144-
-> Read more at https://github.com/webpack-contrib/sass-loader#webpackimporter"
144+
-> Read more at https://github.com/webpack/sass-loader#webpackimporter"
145145
`;

test/loader.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ describe("loader", () => {
266266
await close(compiler);
267267
});
268268

269-
// Test for issue: https://github.com/webpack-contrib/sass-loader/issues/32
269+
// Test for issue: https://github.com/webpack/sass-loader/issues/32
270270
it(`should work with multiple "@import" at-rules ('${implementationName}', '${api}' API, '${syntax}' syntax)`, async () => {
271271
const testId = getTestId("multiple-imports", syntax);
272272
const options = {
@@ -286,7 +286,7 @@ describe("loader", () => {
286286
await close(compiler);
287287
});
288288

289-
// Test for issue: https://github.com/webpack-contrib/sass-loader/issues/73
289+
// Test for issue: https://github.com/webpack/sass-loader/issues/73
290290
it(`should work with "@import" at-rules from other language style ('${implementationName}', '${api}' API, '${syntax}' syntax)`, async () => {
291291
const testId = getTestId("import-other-style", syntax);
292292
const options = {
@@ -708,7 +708,7 @@ describe("loader", () => {
708708
});
709709

710710
// Legacy support for CSS imports with node-sass
711-
// See discussion https://github.com/webpack-contrib/sass-loader/pull/573/files?#r199109203
711+
// See discussion https://github.com/webpack/sass-loader/pull/573/files?#r199109203
712712
it(`should work and ignore all css "@import" at-rules ('${implementationName}', '${api}' API, '${syntax}' syntax)`, async () => {
713713
const testId = getTestId("import-css", syntax);
714714
const options = {

test/sass/imports.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/* @import ~sass/underscore */
88
@import ~sass/underscore
99
// Import a module with a dot in its name
10-
// @see https://github.com/webpack-contrib/sass-loader/issues/167
10+
// @see https://github.com/webpack/sass-loader/issues/167
1111
/* @import ~sass/some.module */
1212
@import ~sass/some.module
1313
/* @import url(http://example.com/something/from/the/interwebs); */
@@ -17,7 +17,7 @@
1717
@import language
1818

1919
// The local util file should take precedence over Node's util module
20-
// See https://github.com/webpack-contrib/sass-loader/issues/556
20+
// See https://github.com/webpack/sass-loader/issues/556
2121
/* @import util */
2222
@import util
2323
/* @import ~module */

test/sass/uses.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
/* @use ~sass/underscore */
99
@use "~sass/underscore" as underscore3
1010
// Import a module with a dot in its name
11-
// @see https://github.com/webpack-contrib/sass-loader/issues/167
11+
// @see https://github.com/webpack/sass-loader/issues/167
1212
/* @use ~sass/some.module */
1313
@use "~sass/some.module"
1414
// The local util file should take precedence over Node's util module
15-
// See https://github.com/webpack-contrib/sass-loader/issues/556
15+
// See https://github.com/webpack/sass-loader/issues/556
1616
/* @use util */
1717
@use "util"
1818
/* @use ~module */

test/scss/another/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// ./another/module.js: The sass-loader should not try to import that. scss, sass and css extensions should be preferred.
2-
// See https://github.com/webpack-contrib/sass-loader/issues/556#issuecomment-381154009
2+
// See https://github.com/webpack/sass-loader/issues/556#issuecomment-381154009
33

44
"This should not be imported";

0 commit comments

Comments
 (0)