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

最新版的react里面postcss的plugins已经变成纯对象了,找不到要在哪里正确配置那个方法调用 #34

Open
xiezhiyi163 opened this issue Mar 5, 2022 · 1 comment

Comments

@xiezhiyi163
Copy link

No description provided.

@rsh-kendrick
Copy link

{ loader: require.resolve("postcss-loader"), options: { postcssOptions: { ident: "postcss", config: false, plugins: !useTailwind ? [ "postcss-flexbugs-fixes", [ "postcss-preset-env", { autoprefixer: { flexbox: "no-2009", }, stage: 3, }, ], ] : [ "tailwindcss", "postcss-flexbugs-fixes", [ "postcss-preset-env", { autoprefixer: { flexbox: "no-2009", }, stage: 3, }, ], ], }, sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment, }, },
最新react-creat-app使用npm run eject后config里的webpack.config.js配置变成了这样,px2rem方法放哪里都不生效

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

No branches or pull requests

2 participants