Skip to content

Commit 57c457d

Browse files
arseniewevilebottnawi
authored andcommitted
docs: fixed missing commas in configuration examples (#266)
1 parent c9707f1 commit 57c457d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ This could be used for non local development and production.
151151
**webpack.config.js**
152152
```js
153153
{
154-
loader: 'style-loader'
154+
loader: 'style-loader',
155155
options: {
156156
hmr: false
157157
}
@@ -246,7 +246,7 @@ If the return value of the `transform` function is falsy, the css will not be lo
246246
**webpack.config.js**
247247
```js
248248
{
249-
loader: 'style-loader'
249+
loader: 'style-loader',
250250
options: {
251251
transform: 'path/to/transform.js'
252252
}
@@ -268,7 +268,7 @@ module.exports = function (css) {
268268
**webpack.config.js**
269269
```js
270270
{
271-
loader: 'style-loader'
271+
loader: 'style-loader',
272272
options: {
273273
transform: 'path/to/conditional.js'
274274
}
@@ -294,7 +294,7 @@ By default, the style-loader appends `<style>` elements to the end of the style
294294
**webpack.config.js**
295295
```js
296296
{
297-
loader: 'style-loader'
297+
loader: 'style-loader',
298298
options: {
299299
insertAt: 'top'
300300
}
@@ -306,7 +306,7 @@ A new `<style>` element can be inserted before a specific element by passing an
306306
**webpack.config.js**
307307
```js
308308
{
309-
loader: 'style-loader'
309+
loader: 'style-loader',
310310
options: {
311311
insertAt: {
312312
before: '#id'
@@ -322,7 +322,7 @@ You can also insert the styles into a [ShadowRoot](https://developer.mozilla.org
322322
**webpack.config.js**
323323
```js
324324
{
325-
loader: 'style-loader'
325+
loader: 'style-loader',
326326
options: {
327327
insertInto: '#host::shadow>#root'
328328
}
@@ -338,7 +338,7 @@ If defined, the style-loader will reuse a single `<style>` element, instead of a
338338
**webpack.config.js**
339339
```js
340340
{
341-
loader: 'style-loader'
341+
loader: 'style-loader',
342342
options: {
343343
singleton: true
344344
}
@@ -352,7 +352,7 @@ Enable/Disable source map loading
352352
**webpack.config.js**
353353
```js
354354
{
355-
loader: 'style-loader'
355+
loader: 'style-loader',
356356
options: {
357357
sourceMap: true
358358
}
@@ -366,7 +366,7 @@ If convertToAbsoluteUrls and sourceMaps are both enabled, relative urls will be
366366
**webpack.config.js**
367367
```js
368368
{
369-
loader: 'style-loader'
369+
loader: 'style-loader',
370370
options: {
371371
sourceMap: true,
372372
convertToAbsoluteUrls: true

0 commit comments

Comments
 (0)