Change the theme-color-css download url if you need. * changeUrl: Function(cssUrl: string): string Using appendToEl: 'body' can make the priority of theme-color-css higher than any other css in element. The element selector for this plugin to appending with child node. New colors array for changing, one-to-one corresponde with matchColors. These options are used for (options), which imports client/index.js. Use a RegExp to check which files to be injected to. Injecting config-code into html files instead of injecting into entry js files. Default is an random name which start with 'tc_cfg_'. to set custom var name, instead of theme_COLOR_cfg or tc_cfg_xxxxxx. Inject css text into js file, no need to download theme-colors-xxx.css any more. Changing css selectors, in order to raise css priority, to resolve lazy-loading problems. Const ThemeColorReplacer = require ( 'webpack-theme-color-replacer' ) module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |