postcss-import

1.安装
# yarn add postcss-import -D
2.配置(postcss.config.js)
module.exports = {
  plugins: [
    ...,
    require('postcss-simple-vars'),//->后
    require('postcss-conditionals')
  ]
}
3.使用
@import "./test/test.css";

results matching ""

    No results matching ""