chkilel / vitewindmanager-plugin
Vitewind 主题的辅助插件,将为主题注入 CSS 和 JS 资产,以便在开发和生产环境中与 viteJS 正常工作
1.0.0
2021-08-24 14:30 UTC
Requires
- php: >=7.0
- composer/installers: ~1.0
Requires (Dev)
- roave/security-advisories: dev-latest
README
💨Windi CSS 和 ⚡️Vite,适用于 🍂OctoberCMS & ❄️WinterCMS
介绍
这是一个💨Vitewind 主题的辅助插件,如果您不使用Vitewind 主题,请勿安装。
安装
前往您的后端,到 设置 > 系统 > 更新与插件 并安装插件 Chkilel.VitewindManager(只需复制下面的插件 ID 并将其粘贴到搜索框中。)
主题设置
前往您的后端,到 设置 > Vitewind 主题 并配置以下设置
Environment:
- Use `.env` configuration : will use the `APP_ENV` value in the .env file
- Development
- Production
Port number : Enter the port on which the theme dev server is running (when you run `npm run dev`)
Theme: choose the appropiate theme, for example if you renamed the theme folder
布局组件
Vitewind 管理插件注册一个布局组件以注入 JS 和 CSS 资产,管理开发中的热重载,并在生产中注入构建资产。
将组件放入每个布局中,并设置该布局需要加载的 JS 文件。
主题许可证
MIT 许可证 - 有关 MIT 许可证的详细信息,请参阅LICENSE文件。
变更日志
1.0.0 : 初始版本
- Vitewind:Windi CSS 的魔法和 Vite JS 的速度