Open xxholly32 opened 3 years ago
【背景】
我简单搭建了一个hello-world,尝试页面调用
import { replaceStyleVariables } from 'vite-plugin-theme/es/client'; await replaceStyleVariables({ colorVariables: ["#ccccc"], });
报错误
Uncaught ReferenceError: __COLOR_PLUGIN_OUTPUT_FILE_NAME__ is not defined
嗯可以了,我设置 colorVariables 为空数组了
我自己做了一个 demo,比较简单基于 vitesse 和 vite-plugin-theme 做的,可能会比较好理解一些,暂时只支持 dev模式
+1,实例项目太大太复杂,基本没法参考
看看这个能否做到您的需求 @zougt/vite-plugin-theme-preprocessor
【背景】
我简单搭建了一个hello-world,尝试页面调用
报错误
Uncaught ReferenceError: __COLOR_PLUGIN_OUTPUT_FILE_NAME__ is not defined