postcss 插件是否应该将 postcss 引用为对等依赖项?
Should postcss plugins reference postcss as a peer dependency?
我正在尝试使用 PostCSS Sass Color Function。我收到此错误:
Unknown error from PostCSS plugin. Your current PostCSS version is 6.0.22, but postcss-sass-color-functions uses 5.2.18. Perhaps this is the source of the error below.
(node:12911) UnhandledPromiseRejectionWarning: Error: /home/ole/Junk/superflycss/component-button/node_modules/@superflycss/variables-colors/notifications/index.css:76:9: Unable to parse color from string "25%"
Postcss-sass-color-functions 不再按照其存储库中所述进行维护。
您可以使用 postcss-preset-env 而不是启用 color-mod-function
来执行相同的操作。
我正在尝试使用 PostCSS Sass Color Function。我收到此错误:
Unknown error from PostCSS plugin. Your current PostCSS version is 6.0.22, but postcss-sass-color-functions uses 5.2.18. Perhaps this is the source of the error below.
(node:12911) UnhandledPromiseRejectionWarning: Error: /home/ole/Junk/superflycss/component-button/node_modules/@superflycss/variables-colors/notifications/index.css:76:9: Unable to parse color from string "25%"
Postcss-sass-color-functions 不再按照其存储库中所述进行维护。
您可以使用 postcss-preset-env 而不是启用 color-mod-function
来执行相同的操作。