Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: TAILWIND_MODE watch only in develop env #43

Merged
merged 1 commit into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/uni-app/.env → demo/uni-app/.env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# 假如 jit 模式 HMR 失效
TAILWIND_MODE=watch
TAILWIND_MODE=watch
4 changes: 2 additions & 2 deletions docs/remax.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ module.exports = ({ options }) => ({
})
```

## 4. 添加 `.env` 设置 `TAILWIND_MODE`
## 4. 添加 `.env.development` 设置 `TAILWIND_MODE`

```plain
# https://github.com/sonofmagic/weapp-tailwindcss-webpack-plugin/blob/main/demo/remax-app/.env
# https://github.com/sonofmagic/weapp-tailwindcss-webpack-plugin/blob/main/demo/remax-app/.env.development
# 假如 jit 模式 HMR 失效
TAILWIND_MODE=watch
```
Expand Down
2 changes: 1 addition & 1 deletion docs/uni-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = {
## 4. 添加 `.env` 设置 `TAILWIND_MODE`

```plain
# https://github.com/sonofmagic/weapp-tailwindcss-webpack-plugin/blob/main/demo/uni-app/.env
# https://github.com/sonofmagic/weapp-tailwindcss-webpack-plugin/blob/main/demo/uni-app/.env.development
# 假如 jit 模式 HMR 失效
TAILWIND_MODE=watch
```
Expand Down