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',
],
},
},
],
}