Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix: 去掉关闭 pxToRpx 时出现的 postcss 警告
Browse files Browse the repository at this point in the history
close #1377
  • Loading branch information
yesmeck committed Nov 24, 2020
1 parent 29f1f00 commit 7f271ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/remax-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"mini-css-extract-plugin": "^0.11.1",
"node-notifier": "^8.0.0",
"postcss-loader": "^3.0.0",
"postcss-noop": "^1.0.1",
"postcss-preset-env": "^6.7.0",
"regenerator-runtime": "^0.13.3",
"remax-stats": "^0.1.1",
Expand Down
1 change: 1 addition & 0 deletions packages/remax-cli/src/build/webpack/config/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function addCSSRule(webpackConfig: Config, builder: Builder, web: boolean
path: resolvePostcssConfig(options),
ctx: {
plugins: {
[require.resolve('postcss-noop')]: {},
[require.resolve('postcss-preset-env')]: web && {
browsers: ['chrome >= 49', 'edge >= 13', 'ios >= 8', 'Android >= 4.4'],
},
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14056,6 +14056,13 @@ postcss-nesting@^7.0.0:
dependencies:
postcss "^7.0.2"

postcss-noop@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/postcss-noop/-/postcss-noop-1.0.1.tgz#a64b11b168cd3dee7e46660f41188327467018db"
integrity sha512-IjFv0tHCExzPMMKzFbJvBqkiJJ7nTJ7QVLWuk+rak3YxUMmlxFi33RX8V7+9ujrrqJmqUEgP1TD6GDJ18c9oHg==
dependencies:
postcss "^7.0.14"

postcss-normalize-charset@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz#8b35add3aee83a136b0471e0d59be58a50285dd4"
Expand Down

1 comment on commit 7f271ff

@vercel
Copy link

@vercel vercel bot commented on 7f271ff Nov 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.