css-loader 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/dist/index.js +6 -2
- package/package.json +11 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.5.3](https://github.com/webpack-contrib/css-loader/compare/v3.5.2...v3.5.3) (2020-04-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add file from an error to file dependencies ([841423f](https://github.com/webpack-contrib/css-loader/commit/841423fca2932c18f8ac0cf0a1f0012fc0a62fb6))
|
|
11
|
+
* avoid query string in source maps ([#1082](https://github.com/webpack-contrib/css-loader/issues/1082)) ([f64de13](https://github.com/webpack-contrib/css-loader/commit/f64de13f7377eff9501348cf26213212ca696913))
|
|
12
|
+
|
|
5
13
|
### [3.5.2](https://github.com/webpack-contrib/css-loader/compare/v3.5.1...v3.5.2) (2020-04-10)
|
|
6
14
|
|
|
7
15
|
|
package/README.md
CHANGED
|
@@ -1117,8 +1117,8 @@ Please take a moment to read our contributing guidelines if you haven't yet done
|
|
|
1117
1117
|
[node-url]: https://nodejs.org
|
|
1118
1118
|
[deps]: https://david-dm.org/webpack-contrib/css-loader.svg
|
|
1119
1119
|
[deps-url]: https://david-dm.org/webpack-contrib/css-loader
|
|
1120
|
-
[tests]: https://
|
|
1121
|
-
[tests-url]: https://
|
|
1120
|
+
[tests]: https://github.com/webpack-contrib/css-loader/workflows/css-loader/badge.svg
|
|
1121
|
+
[tests-url]: https://github.com/webpack-contrib/css-loader/actions
|
|
1122
1122
|
[cover]: https://codecov.io/gh/webpack-contrib/css-loader/branch/master/graph/badge.svg
|
|
1123
1123
|
[cover-url]: https://codecov.io/gh/webpack-contrib/css-loader
|
|
1124
1124
|
[chat]: https://badges.gitter.im/webpack/webpack.svg
|
package/dist/index.js
CHANGED
|
@@ -81,8 +81,8 @@ function loader(content, map, meta) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
(0, _postcss.default)(plugins).process(content, {
|
|
84
|
-
from: this.
|
|
85
|
-
to: this.
|
|
84
|
+
from: this.resourcePath,
|
|
85
|
+
to: this.resourcePath,
|
|
86
86
|
map: options.sourceMap ? {
|
|
87
87
|
// Some loaders (example `"postcss-loader": "1.x.x"`) always generates source map, we should remove it
|
|
88
88
|
prev: sourceMap && map ? (0, _utils.normalizeSourceMap)(map) : null,
|
|
@@ -134,6 +134,10 @@ function loader(content, map, meta) {
|
|
|
134
134
|
const exportCode = (0, _utils.getExportCode)(exports, exportType, localsConvention, icssReplacements, esModule);
|
|
135
135
|
return callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
136
136
|
}).catch(error => {
|
|
137
|
+
if (error.file) {
|
|
138
|
+
this.addDependency(error.file);
|
|
139
|
+
}
|
|
140
|
+
|
|
137
141
|
callback(error.name === 'CssSyntaxError' ? new _CssSyntaxError.default(error) : error);
|
|
138
142
|
});
|
|
139
143
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "css-loader",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"description": "css loader module for webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "webpack-contrib/css-loader",
|
|
@@ -54,42 +54,40 @@
|
|
|
54
54
|
"postcss-modules-scope": "^2.2.0",
|
|
55
55
|
"postcss-modules-values": "^3.0.0",
|
|
56
56
|
"postcss-value-parser": "^4.0.3",
|
|
57
|
-
"schema-utils": "^2.6.
|
|
57
|
+
"schema-utils": "^2.6.6",
|
|
58
58
|
"semver": "^6.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/cli": "^7.8.4",
|
|
62
62
|
"@babel/core": "^7.9.0",
|
|
63
|
-
"@babel/preset-env": "^7.9.
|
|
63
|
+
"@babel/preset-env": "^7.9.5",
|
|
64
64
|
"@commitlint/cli": "^8.3.5",
|
|
65
65
|
"@commitlint/config-conventional": "^8.3.4",
|
|
66
66
|
"@webpack-contrib/defaults": "^6.3.0",
|
|
67
67
|
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
|
|
68
|
-
"babel-jest": "^25.
|
|
69
|
-
"commitlint-azure-pipelines-cli": "^1.0.3",
|
|
68
|
+
"babel-jest": "^25.4.0",
|
|
70
69
|
"cross-env": "^7.0.2",
|
|
71
70
|
"del": "^5.1.0",
|
|
72
71
|
"del-cli": "^3.0.0",
|
|
73
72
|
"es-check": "^5.1.0",
|
|
74
73
|
"eslint": "^6.8.0",
|
|
75
|
-
"eslint-config-prettier": "^6.
|
|
74
|
+
"eslint-config-prettier": "^6.11.0",
|
|
76
75
|
"eslint-plugin-import": "^2.20.2",
|
|
77
76
|
"file-loader": "^6.0.0",
|
|
78
|
-
"husky": "^4.2.
|
|
79
|
-
"jest": "^25.
|
|
80
|
-
"
|
|
81
|
-
"lint-staged": "^10.1.2",
|
|
77
|
+
"husky": "^4.2.5",
|
|
78
|
+
"jest": "^25.4.0",
|
|
79
|
+
"lint-staged": "^10.1.7",
|
|
82
80
|
"memfs": "^3.1.2",
|
|
83
81
|
"npm-run-all": "^4.1.5",
|
|
84
82
|
"postcss-loader": "^3.0.0",
|
|
85
83
|
"postcss-preset-env": "^6.7.0",
|
|
86
|
-
"prettier": "^2.0.
|
|
84
|
+
"prettier": "^2.0.5",
|
|
87
85
|
"sass": "^1.26.3",
|
|
88
86
|
"sass-loader": "^8.0.2",
|
|
89
87
|
"standard-version": "^7.1.0",
|
|
90
88
|
"strip-ansi": "^6.0.0",
|
|
91
|
-
"url-loader": "^4.
|
|
92
|
-
"webpack": "^4.
|
|
89
|
+
"url-loader": "^4.1.0",
|
|
90
|
+
"webpack": "^4.43.0"
|
|
93
91
|
},
|
|
94
92
|
"keywords": [
|
|
95
93
|
"webpack",
|