Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

示例项目过于复杂,有没有简单的hello-world #3

Open
xxholly32 opened this issue May 11, 2021 · 4 comments
Open

示例项目过于复杂,有没有简单的hello-world #3

xxholly32 opened this issue May 11, 2021 · 4 comments

Comments

@xxholly32
Copy link

【背景】

我简单搭建了一个hello-world,尝试页面调用

import { replaceStyleVariables } from 'vite-plugin-theme/es/client';
 await replaceStyleVariables({
    colorVariables: ["#ccccc"],
  });

报错误

Uncaught ReferenceError: __COLOR_PLUGIN_OUTPUT_FILE_NAME__ is not defined

@xxholly32
Copy link
Author

嗯可以了,我设置 colorVariables 为空数组了

@xxholly32
Copy link
Author

xxholly32 commented May 14, 2021

我自己做了一个 demo,比较简单基于 vitesse 和 vite-plugin-theme 做的,可能会比较好理解一些,暂时只支持 dev模式

@Nakus0426
Copy link

+1,实例项目太大太复杂,基本没法参考

@GitOfZGT
Copy link

GitOfZGT commented Dec 6, 2021

看看这个能否做到您的需求 @zougt/vite-plugin-theme-preprocessor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants