css-loader 0.28.4 → 0.28.5
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 +11 -0
- package/README.md +3 -3
- package/lib/compile-exports.js +1 -1
- package/lib/processCss.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
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
|
+
<a name="0.28.5"></a>
|
|
6
|
+
## [0.28.5](https://github.com/webpack/css-loader/compare/v0.28.4...v0.28.5) (2017-08-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* match mutliple dashes (`options.camelCase`) ([#556](https://github.com/webpack/css-loader/issues/556)) ([1fee601](https://github.com/webpack/css-loader/commit/1fee601))
|
|
12
|
+
* stricter `[@import](https://github.com/import)` tolerance ([#593](https://github.com/webpack/css-loader/issues/593)) ([2e4ec09](https://github.com/webpack/css-loader/commit/2e4ec09))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
5
16
|
<a name="0.28.4"></a>
|
|
6
17
|
## [0.28.4](https://github.com/webpack/css-loader/compare/v0.28.3...v0.28.4) (2017-05-30)
|
|
7
18
|
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ The `css-loader` interprets `@import` and `url()` like `import/require()`
|
|
|
27
27
|
and will resolve them.
|
|
28
28
|
|
|
29
29
|
Good loaders for requiring your assets are the [file-loader](https://github.com/webpack/file-loader)
|
|
30
|
-
and the [url-loader](https://github.com/webpack/url-loader) which you should specify in your config (see [below](https://github.com/
|
|
30
|
+
and the [url-loader](https://github.com/webpack/url-loader) which you should specify in your config (see [below](https://github.com/webpack-contrib/css-loader#assets)).
|
|
31
31
|
|
|
32
32
|
**file.js**
|
|
33
33
|
```js
|
|
@@ -103,6 +103,7 @@ It's useful when you, for instance, need to post process the CSS as a string.
|
|
|
103
103
|
|**`sourceMap`**|`{Boolean}`|`false`|Enable/Disable Sourcemaps|
|
|
104
104
|
|**`camelCase`**|`{Boolean\|String}`|`false`|Export Classnames in CamelCase|
|
|
105
105
|
|**`importLoaders`**|`{Number}`|`0`|Number of loaders applied before CSS loader|
|
|
106
|
+
|**`localIdentName`**|`{String}`|`[hash:base64]`|Configure the generated ident|
|
|
106
107
|
|
|
107
108
|
### `root`
|
|
108
109
|
|
|
@@ -342,7 +343,7 @@ To import from multiple modules use multiple `composes:` rules.
|
|
|
342
343
|
|
|
343
344
|
By default the css-loader minimizes the css if specified by the module system.
|
|
344
345
|
|
|
345
|
-
In some cases the minification is destructive to the css, so you can provide your own options to the minifier if needed.
|
|
346
|
+
In some cases the minification is destructive to the css, so you can provide your own options to the cssnano-based minifier if needed. See [cssnano's documentation](http://cssnano.co/guides/) for more information on the available options.
|
|
346
347
|
|
|
347
348
|
You can also disable or enforce minification with the `minimize` query parameter.
|
|
348
349
|
|
|
@@ -487,7 +488,6 @@ module.exports = {
|
|
|
487
488
|
})
|
|
488
489
|
]
|
|
489
490
|
: []
|
|
490
|
-
]
|
|
491
491
|
}
|
|
492
492
|
```
|
|
493
493
|
|
package/lib/compile-exports.js
CHANGED
package/lib/processCss.js
CHANGED
|
@@ -42,12 +42,12 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
if(options.import) {
|
|
45
|
-
css.walkAtRules(
|
|
45
|
+
css.walkAtRules(/^import$/i, function(rule) {
|
|
46
46
|
var values = Tokenizer.parseValues(rule.params);
|
|
47
47
|
var url = values.nodes[0].nodes[0];
|
|
48
|
-
if(url.type === "url") {
|
|
48
|
+
if(url && url.type === "url") {
|
|
49
49
|
url = url.url;
|
|
50
|
-
} else if(url.type === "string") {
|
|
50
|
+
} else if(url && url.type === "string") {
|
|
51
51
|
url = url.value;
|
|
52
52
|
} else throw rule.error("Unexpected format " + rule.params);
|
|
53
53
|
if (!url.replace(/\s/g, '').length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "css-loader",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.5",
|
|
4
4
|
"author": "Tobias Koppers @sokra",
|
|
5
5
|
"description": "css loader module for webpack",
|
|
6
6
|
"engines": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"postcss-modules-scope": "^1.0.0",
|
|
26
26
|
"postcss-modules-values": "^1.1.0",
|
|
27
27
|
"postcss-value-parser": "^3.3.0",
|
|
28
|
-
"source-list-map": "^0.
|
|
28
|
+
"source-list-map": "^2.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"codecov": "^1.0.1",
|