ice vite模式下postcss配置构建报错
RichadoM opened this issue · comments
碍人 commented
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
ClarkXia commented
vite 模式可以通过 https://v2.ice.work/docs/config/about/#postcssrc- 自己配置下
碍人 commented
postcssrc这块是否有配置文档呢?