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

ice vite模式下postcss配置构建报错 #6756

Closed
RichadoM opened this issue Jan 22, 2024 · 2 comments
Closed

ice vite模式下postcss配置构建报错 #6756

RichadoM opened this issue Jan 22, 2024 · 2 comments
Labels

Comments

@RichadoM
Copy link

Describe the bug

vite: true, "postcssOptions": { "plugins": { "postcss-preset-env": { "browsers": ["last 2 versions"] }, "postcss-import": false, "postcss-short": { "prefix": "x" } }, "syntax": "sugarss", "parser": "sugarss", "stringifier": "sugarss" },
按照文档中的配置,并安装了postcss-preset-env,postcss-import,postcss-short
构建中报错:[vite] Internal server error: parser is not a function

Expected behavior

期望可以正常编译

Actual behavior

No response

Version of ice.js

2.0.0

Content of build.json or ice.config.mts

No response

Additional context

No response

@RichadoM RichadoM added the bug label Jan 22, 2024
@ClarkXia
Copy link
Collaborator

vite 模式可以通过 https://v2.ice.work/docs/config/about/#postcssrc- 自己配置下

@RichadoM
Copy link
Author

postcssrc这块是否有配置文档呢?

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

No branches or pull requests

2 participants