下载:npm install -D sass-resources-loader
在build中utils中将
scss: generateLoaders('sass') 注释掉
添加:
scss: generateLoaders('sass').concat({
loader: 'sass-resources-loader',
options: {
resources: path.resolve(__dirname, '../src/assets/scss/global.scss')
}
}),