craco with saas-loader

全局 scss 变量和函数

const sassResourcesLoader = require('craco-sass-resources-loader');
const path = require('path');

module.exports = {
  plugins: [
    {
      plugin: sassResourcesLoader,
      options: {
        resources: [
          './src/styles/function.scss',
          './src/styles/variables.scss',
        ],
      },
    },
  ],
}
posted @ 2022-02-23 13:01  SteveYu  阅读(104)  评论(0编辑  收藏  举报