You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-9
Original file line number
Diff line number
Diff line change
@@ -367,7 +367,7 @@ Options are merged recursively with the defaults. For example, adding new plugin
367
367
368
368
#### Adding additional plugins
369
369
370
-
By default the preprocessor uses all necessary plugins to build SUIT components. However additional plugins can be installed into a project and then added to the `use` array.
370
+
By default the preprocessor uses all necessary plugins to build SUIT components. However additional plugins can be installed into a project and then added to the `use` array. They will be appended to the existing list of plugins.
371
371
372
372
**Note**: This will not work with the preprocessor installed globally. Instead rely on the convenience of `npm run script`
373
373
@@ -404,39 +404,34 @@ If duplicate plugins are used they will be removed, but the new order will be re
404
404
```js
405
405
// Default order
406
406
var defaults = [
407
-
'postcss-easy-import',
408
407
'postcss-custom-properties',
409
408
'postcss-calc',
410
409
'postcss-color-function',
411
410
'postcss-custom-media',
412
411
'postcss-apply',
413
-
'autoprefixer',
414
-
'postcss-reporter'
415
412
];
416
413
417
414
// config
418
415
module.exports= {
419
416
use: [
420
417
'postcss-at2x',
421
418
'postcss-calc',
422
-
'autoprefixer',
423
-
'postcss-reporter'
424
419
]
425
420
};
426
421
427
422
var result = [
428
-
'postcss-easy-import',
429
423
'postcss-custom-properties',
430
424
'postcss-color-function',
431
425
'postcss-custom-media',
432
426
'postcss-apply',
433
427
'postcss-at2x',
434
428
'postcss-calc',
435
-
'autoprefixer',
436
-
'postcss-reporter'
437
429
];
438
430
```
439
431
432
+
**Note** Some core plugins such as `postcss-easy-import` and `autoprefixer`
433
+
cannot be re-ordered. This is to ensure components are preprocessed correctly.
0 commit comments