Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

## <a href="https://github.com/webpack-contrib/style-loader/compare/v1.2.0...v1.2.1">1.2.1</a> (2020-04-28)

## Bug Fixes

- hot module replacement logic for lazy type (#468) (88a5c2b)

# <a href="https://github.com/webpack-contrib/style-loader/compare/v1.1.4...v1.2.0">1.2.0</a> (2020-04-24)

## Features

- hot module replacement for css modules (6d14e0a)

## <a href="https://github.com/webpack-contrib/style-loader/compare/v1.1.3...v1.1.4">1.1.4</a> (2020-04-15)

# Chore

- update deps

### <a href="https://github.com/webpack-contrib/style-loader/compare/v1.1.2...v1.1.3">1.1.3</a> (2020-01-17)

### Bug Fixes

- injection algorithm (#456) (236b243)

### <a href="https://github.com/webpack-contrib/style-loader/compare/v1.1.1...v1.1.2">1.1.2</a> (2019-12-25)

### Bug Fixes

- algorithm for importing modules (#449) (91ceaf2)
- checking that the list of modules is an array (#448) (1138ed7)

### <a href="https://github.com/webpack-contrib/style-loader/compare/v1.1.0...v1.1.1">1.1.1</a> (2019-12-20)

### Bug Fixes

- add empty default export for `linkTag` value (7ee8b04)

## <a href="https://github.com/webpack-contrib/style-loader/compare/v1.0.2...v1.1.0">1.1.0</a> (2019-12-20)

### Features

- `esModule` option (#441) (3415266)

### Bug Fixes

- order of imported styles (#443) (c7d6e3a)

### <a href="https://github.com/webpack-contrib/style-loader/compare/v1.0.1...v1.0.2">1.0.2</a> (2019-12-17)

### Bug Fixes

- support ES module syntax (#435) (dcbfadb)

### <a href="https://github.com/webpack-contrib/style-loader/compare/v1.0.0...v1.0.1">1.0.1</a> (2019-11-28)

### Bug Fixes

- compatibility `linkTag` with ES module syntax (#429) (2cdb9c3)

## <a href="https://github.com/webpack-contrib/style-loader/compare/v0.23.1...v1.0.0">1.0.0</a> (2019-08-06)

### Bug Fixes

- es3 compatibility (#390) (ae24ec2)
- restore original hot reloading behaviour for locals (#419) (f026429)
- better handle source maps (#383) (84ec8e5)

### Features

- new `injectType` option (e2664e9)
- remove type `text/css` from style and link element (#399) (b0187d6)

### BREAKING CHANGES

- minimum required Node.js version is `8.9.0`
- minimum required `wepback` version is `4.0.0`
- the `convertToAbsoluteUrls` option was removed, you don't need this anymore
- the `attrs` option was renamed to the `attributes` option
- the `transform` option was removed without replacement
- the `hmr` option was removed, `webpack` automatically inject HMR code when it is required (when the `HotModuleReplacementPlugin` plugin was used)
- the `sourceMap` option was removed. The loader automatically inject source maps if the previous loader emit them
- the `ref`/`unref` api methods were removed for `useable` loader, please use the `use`/`unuse` api methods
- the `style-loader/url` loader was removed in favor `injectType` option (look the documentation about the `injectType` option)
- the `style-loader/useable` loader was removed in favor `injectType` option (look the documentation about the `injectType` option)
- the `singleton` option was removed (look documentation about the `injectType` option)
- the `insertAt` option was removed in favor the `insert` option (look the documentation about the `insert` option and examples)
- the `insertInto` options was removed in favor the `insert` option (look the documentation about the `insert` option and examples)

## <a href="https://github.com/webpack-contrib/style-loader/compare/v0.23.0...v0.23.1">0.23.1</a> (2018-10-08)

### Bug Fixes

- addStyles: support exports of transpiled transforms (`options.transform`) (#333) (33aebed)

# <a href="https://github.com/webpack-contrib/style-loader/compare/v0.22.1...v0.23.0">0.23.0</a> (2018-08-27)

### Features

- useable: add `insertInto` support (`options.insertInto`) (#341) (2588aca)

## <a href="https://github.com/webpack-contrib/style-loader/compare/v0.22.0...v0.22.1">0.22.1</a> (2018-08-08)

### Bug Fixes

- addStyles: use `var` instead of `const` (IE fix) (#338) (1ca12ab)

# <a href="https://github.com/webpack-contrib/style-loader/compare/v0.21.0...v0.22.0">0.22.0</a> (2018-08-07)

### Bug Fixes

- insertInto and insertAt collaboration (#325) (c7d8fec)

### Features

- add support for webpack_nonce (#319) (fc24512)

# <a href="https://github.com/webpack-contrib/style-loader/compare/v0.20.3...v0.21.0">0.21.0</a> (2018-04-18)

### Features

- enable tag type configuration (#316) (892cba5)

## <a href="https://github.com/webpack-contrib/style-loader/compare/v0.20.2...v0.20.3">0.20.3</a> (2018-03-09)

### Bug Fixes

- package: update `schema-utils` v0.4.3...0.4.5 (`dependencies`) (#308) (9455888)

## <a href="https://github.com/webpack-contrib/style-loader/compare/v0.20.1...v0.20.2">0.20.2</a> (2018-02-15)

### Bug Fixes

- urls: skip empty `url()` handling (#304) (64f12dc)

## <a href="https://github.com/webpack-contrib/style-loader/compare/v0.20.0...v0.20.1">0.20.1</a> (2018-01-26)

### Bug Fixes

- index: source code indentation (#299) (b4642e7)

# <a href="https://github.com/webpack-contrib/style-loader/compare/v0.19.1...v0.20.0">0.20.0</a> (2018-01-26)

### Bug Fixes

- addStyles: check if `HTMLIFrameElement` exist (#296) (9b46128)
- index: enable HMR in case `locals` (`css-modules`) are unchanged (#298) (3a4cb53)
- options: add `transform` option validation (`{String}`) (23c3567)
- options: support passing a `{Function}` (`options.insertInto`) (e0c4b19)

### Features

- support passing a `{Function}` (`options.insertInto`) (#279) (0eb8fe7)

## <a href="https://github.com/webpack/style-loader/compare/v0.19.0...v0.19.1">0.19.1</a> (2017-12-14)

### Bug Fixes

- addStyles: correctly check `singleton` behavior when `{Boolean}` (`options.singleton`) (#285) (2bfc93e)

# <a href="https://github.com/webpack/style-loader/compare/v0.18.2...v0.19.0">0.19.0</a> (2017-10-03)

### Features

- add option to enable/disable HMR (`options.hmr`) (#264) (378e906)
- add support for iframes (`options.insertInto`) (#248) (25e8e89)
- support 'before' insertions (`options.insertAt`) (#253) (67120f8)

## <a href="https://github.com/webpack/style-loader/compare/v0.18.1...v0.18.2">0.18.2</a> (2017-06-05)

### Bug Fixes

- url: use `loaderUtils.stringifyRequest` to avoid invalidating hashes due to absolute paths (#242) (97508ec)
- Add `null` check to `removeStyleElement` (#245) (0a4845c)

## <a href="https://github.com/webpack/style-loader/compare/v0.18.0...v0.18.1">0.18.1</a> (2017-05-23)

### Bug Fixes

- addStyles: revert merged loops (#236) (fbd04b1)

# <a href="https://github.com/webpack/style-loader/compare/v0.17.0...v0.18.0">0.18.0</a> (2017-05-22)

### Bug Fixes

- stringify the options.transform request (#230) (5888095)

### Features

- add options validation (#224) (4b6b70d)

# <a href="https://github.com/webpack/style-loader/compare/v0.16.1...v0.17.0">0.17.0</a> (2017-05-01)

### Features

- add option.base (#164) (e4ac886)
- add option.transform (#146) (1c3943f)

## <a href="https://github.com/webpack/style-loader/compare/v0.16.0...v0.16.1">0.16.1</a> (2017-03-28)

### Bug Fixes

- negative refs (#122) (f6f577a)

# <a href="https://github.com/webpack/style-loader/compare/v0.15.0...v0.16.0">0.16.0</a> (2017-03-22)

### Bug Fixes

- addStyles: update for test for old IE versions (#196) (1f68495)

### Features

- Set custom attributes for tag in url mode (#198) (2c4f427)

# <a href="https://github.com/webpack/style-loader/compare/v0.14.1...v0.15.0">0.15.0</a> (2017-03-21)

### Bug Fixes

- match parens recursively on URLs to not fix embeded calls (#192) (71e0908)

### Features

- add insertInto option (#135) (6636868)

## <a href="https://github.com/webpack/style-loader/compare/v0.14.0...v0.14.1">0.14.1</a> (2017-03-15)

### Bug Fixes

- syntax error in IE10 and below because of `const` keyword (#190) (01080cf)

# <a href="https://github.com/webpack/style-loader/compare/v0.13.1...v0.14.0">0.14.0</a> (2017-03-15)

### Bug Fixes

- Adds type attr. to the generated link element (2a2f261)
- fixUrls: add param to fix relative urls (#186) (19959ee)
- usable: Export locals if available(#128) (e280cb6)

### Features

- tag-attribute: Add support for custom tag attribute (995f3de)