style-loader
Advanced tools
Comparing version 0.23.0 to 0.23.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.23.1"></a> | ||
## [0.23.1](https://github.com/webpack-contrib/style-loader/compare/v0.23.0...v0.23.1) (2018-10-08) | ||
### Bug Fixes | ||
* **addStyles:** support exports of transpiled transforms (`options.transform`) ([#333](https://github.com/webpack-contrib/style-loader/issues/333)) ([33aebed](https://github.com/webpack-contrib/style-loader/commit/33aebed)) | ||
<a name="0.23.0"></a> | ||
@@ -7,0 +17,0 @@ # [0.23.0](https://github.com/webpack-contrib/style-loader/compare/v0.22.1...v0.23.0) (2018-08-27) |
@@ -257,3 +257,5 @@ /* | ||
if (options.transform && obj.css) { | ||
result = options.transform(obj.css); | ||
result = typeof options.transform === 'function' | ||
? options.transform(obj.css) | ||
: options.transform.default(obj.css); | ||
@@ -260,0 +262,0 @@ if (result) { |
{ | ||
"name": "style-loader", | ||
"version": "0.23.0", | ||
"version": "0.23.1", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -19,3 +19,3 @@ "description": "style loader module for webpack", | ||
"loader-utils": "^1.1.0", | ||
"schema-utils": "^0.4.5" | ||
"schema-utils": "^1.0.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
@@ -21,3 +21,3 @@ [![npm][npm]][npm-url] | ||
<h2 align="center"><a href="https://webpack.js.org/concepts/loaders">Usage</a></h2> | ||
<h2 align="center">Usage</h2> | ||
@@ -88,3 +88,3 @@ It's recommended to combine `style-loader` with the [`css-loader`](https://github.com/webpack/css-loader) | ||
> :information_source: Source maps and assets referenced with `url`: when style loader is used with `{ options: { sourceMap: true } }` option, the CSS modules will be generated as `Blob`s, so relative paths don't work (they would be relative to `chrome:blob` or `chrome:devtools`). In order for assets to maintain correct paths setting `output.publicPath` property of webpack configuration must be set, so that absolute paths are generated. Alternatively you can enable the `convertToAbsoluteUrls` option mentioned above. | ||
> ℹ️ Source maps and assets referenced with `url`: when style loader is used with `{ options: { sourceMap: true } }` option, the CSS modules will be generated as `Blob`s, so relative paths don't work (they would be relative to `chrome:blob` or `chrome:devtools`). In order for assets to maintain correct paths setting `output.publicPath` property of webpack configuration must be set, so that absolute paths are generated. Alternatively you can enable the `convertToAbsoluteUrls` option mentioned above. | ||
@@ -135,3 +135,3 @@ ### `Useable` | ||
:warning: Behavior is undefined when `unuse`/`unref` is called more often than `use`/`ref`. Don't do that. | ||
> ⚠️ Behavior is undefined when `unuse`/`unref` is called more often than `use`/`ref`. Don't do that. | ||
@@ -252,2 +252,4 @@ <h2 align="center">Options</h2> | ||
> ⚠️ In case you are using ES Module syntax in `tranform.js` then, you **need to transpile** it or otherwise it will throw an `{Error}`. | ||
**webpack.config.js** | ||
@@ -254,0 +256,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45731
657
467
+ Addedajv-errors@1.0.1(transitive)
+ Addedschema-utils@1.0.0(transitive)
- Removedschema-utils@0.4.7(transitive)
Updatedschema-utils@^1.0.0