Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ This could be used for non local development and production.
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
hmr: false
}
Expand Down Expand Up @@ -246,7 +246,7 @@ If the return value of the `transform` function is falsy, the css will not be lo
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
transform: 'path/to/transform.js'
}
Expand All @@ -268,7 +268,7 @@ module.exports = function (css) {
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
transform: 'path/to/conditional.js'
}
Expand All @@ -294,7 +294,7 @@ By default, the style-loader appends `<style>` elements to the end of the style
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
insertAt: 'top'
}
Expand All @@ -306,7 +306,7 @@ A new `<style>` element can be inserted before a specific element by passing an
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
insertAt: {
before: '#id'
Expand All @@ -322,7 +322,7 @@ You can also insert the styles into a [ShadowRoot](https://developer.mozilla.org
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
insertInto: '#host::shadow>#root'
}
Expand All @@ -338,7 +338,7 @@ If defined, the style-loader will reuse a single `<style>` element, instead of a
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
singleton: true
}
Expand All @@ -352,7 +352,7 @@ Enable/Disable source map loading
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
sourceMap: true
}
Expand All @@ -366,7 +366,7 @@ If convertToAbsoluteUrls and sourceMaps are both enabled, relative urls will be
**webpack.config.js**
```js
{
loader: 'style-loader'
loader: 'style-loader',
options: {
sourceMap: true,
convertToAbsoluteUrls: true
Expand Down