const path = require('path');
module.exports = {
chainWebpack: config => {
config.module
.rule('vue')
.use('vue-loader')
.tap(options => {
const scssResourceLoader = {
loader: 'sass-resources-loader',
options: {
resources: path.resolve(__dirname, 'src/assets/styles/_vars.scss')
}
};
options.loaders.scss.push(scssResourceLoader);
return options;
});
}
}