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
// optional. set to false to not inject generated css into page;
36
-
// default value is false when set `v2` to `true`, otherwise default is true,
37
-
// if set to `true`, the generated css will be injected into `head`;
38
-
// could be a string of css selector of the element to inject into,
39
-
// e.g.
40
-
// ```
41
-
// inject: '#some-element-id' // the plugin will try to get `shadowRoot` of the found element, and append css to the `shadowRoot`, if no shadowRoot then append to the found element, if no element found then append to document.head
42
-
// ```
43
-
// could be a function with params content & digest (return a string of js code to inject to page),
v2:true, // experimental. v2 can bundle images in css, note if set `v2` to true, other options except `inject` will be ignored. and v2 only works with `bundle: true`.
62
-
v2CssModulesOption: { // Optional.
63
-
dashedIndents:false, // Optional. refer to: https://github.com/parcel-bundler/parcel-css/releases/tag/v1.9.0
64
-
/**
65
-
* Optional. The currently supported segments are:
66
-
* [name] - the base name of the CSS file, without the extension
67
-
* [hash] - a hash of the full file path
68
-
* [local] - the original class name
69
-
*/
70
-
pattern:`custom-prefix_[local]_[hash]`
71
-
}
105
+
/** Optional. Regex to filter certain CSS files. */
0 commit comments