@@ -23,18 +23,18 @@ export default {
2323
2424## Options
2525
26- | Property | Description |
27- | --------------- | ------------------------------------------------------------------------ |
28- | configPath | Path to directory that contains postcss.config.js |
29- | env | Environment variable, defaults to ` process.env.NODE_ENV ` where available |
30- | exclude | Files to exclude |
31- | failOnError | Allows errors to propagate when ` true ` , otherwise warnings are thrown |
32- | from | Input file name (usually set by rollup) |
33- | include | Files to include |
34- | plugins | Array of PostCSS plugins, defaults to ` postcss.config.js ` |
35- | styleDelineator | Custom delineator for parsing styles in a file, default is /`/ |
36- | styleRegex | Custom regex for selecting CSS in file |
37- | to | Output file name (usually set by rollup) |
26+ | Property | Description |
27+ | -------------- | ------------------------------------------------------------------------ |
28+ | configPath | Path to directory that contains postcss.config.js |
29+ | env | Environment variable, defaults to ` process.env.NODE_ENV ` where available |
30+ | exclude | Files to exclude |
31+ | failOnError | Allows errors to propagate when ` true ` , otherwise warnings are thrown |
32+ | from | Input file name (usually set by rollup) |
33+ | include | Files to include |
34+ | plugins | Array of PostCSS plugins, defaults to ` postcss.config.js ` |
35+ | styleDelimiter | Custom delimiter for parsing styles in a file, default is /`/ |
36+ | styleRegex | Custom regex for selecting CSS in file |
37+ | to | Output file name (usually set by rollup) |
3838
3939## Template Literals in JavaScript
4040
@@ -62,14 +62,14 @@ The default regex for selecting template literals in a file is:
6262
6363The lookahead in the above RegExp statement allows for multiple matches of styles in the same file.
6464
65- Customize the regex that is used to parse inline CSS with the ` styleRegex ` and ` styleDelineator ` options.
65+ Customize the regex that is used to parse inline CSS with the ` styleRegex ` and ` styleDelimiter ` options.
6666
6767For example, to parse inline ` <style> ` tags:
6868
6969``` js
7070inlinePostCSS ({
7171 styleRegex: / (?:<style>)((. | \n )+? )(?=(<\/ style>))/ gi ,
72- styleDelineator : / <\/ ? style>/ g ,
72+ styleDelimiter : / <\/ ? style>/ g ,
7373});
7474```
7575
0 commit comments