@@ -151,7 +151,7 @@ This could be used for non local development and production.
151
151
** webpack.config.js**
152
152
``` js
153
153
{
154
- loader: ' style-loader'
154
+ loader: ' style-loader' ,
155
155
options: {
156
156
hmr: false
157
157
}
@@ -246,7 +246,7 @@ If the return value of the `transform` function is falsy, the css will not be lo
246
246
** webpack.config.js**
247
247
``` js
248
248
{
249
- loader: ' style-loader'
249
+ loader: ' style-loader' ,
250
250
options: {
251
251
transform: ' path/to/transform.js'
252
252
}
@@ -268,7 +268,7 @@ module.exports = function (css) {
268
268
** webpack.config.js**
269
269
``` js
270
270
{
271
- loader: ' style-loader'
271
+ loader: ' style-loader' ,
272
272
options: {
273
273
transform: ' path/to/conditional.js'
274
274
}
@@ -294,7 +294,7 @@ By default, the style-loader appends `<style>` elements to the end of the style
294
294
** webpack.config.js**
295
295
``` js
296
296
{
297
- loader: ' style-loader'
297
+ loader: ' style-loader' ,
298
298
options: {
299
299
insertAt: ' top'
300
300
}
@@ -306,7 +306,7 @@ A new `<style>` element can be inserted before a specific element by passing an
306
306
** webpack.config.js**
307
307
``` js
308
308
{
309
- loader: ' style-loader'
309
+ loader: ' style-loader' ,
310
310
options: {
311
311
insertAt: {
312
312
before: ' #id'
@@ -322,7 +322,7 @@ You can also insert the styles into a [ShadowRoot](https://developer.mozilla.org
322
322
** webpack.config.js**
323
323
``` js
324
324
{
325
- loader: ' style-loader'
325
+ loader: ' style-loader' ,
326
326
options: {
327
327
insertInto: ' #host::shadow>#root'
328
328
}
@@ -338,7 +338,7 @@ If defined, the style-loader will reuse a single `<style>` element, instead of a
338
338
** webpack.config.js**
339
339
``` js
340
340
{
341
- loader: ' style-loader'
341
+ loader: ' style-loader' ,
342
342
options: {
343
343
singleton: true
344
344
}
@@ -352,7 +352,7 @@ Enable/Disable source map loading
352
352
** webpack.config.js**
353
353
``` js
354
354
{
355
- loader: ' style-loader'
355
+ loader: ' style-loader' ,
356
356
options: {
357
357
sourceMap: true
358
358
}
@@ -366,7 +366,7 @@ If convertToAbsoluteUrls and sourceMaps are both enabled, relative urls will be
366
366
** webpack.config.js**
367
367
``` js
368
368
{
369
- loader: ' style-loader'
369
+ loader: ' style-loader' ,
370
370
options: {
371
371
sourceMap: true ,
372
372
convertToAbsoluteUrls: true
0 commit comments