Javascript Asp.Net内核中网页包上的sass加载程序

Javascript Asp.Net内核中网页包上的sass加载程序,javascript,asp.net,webpack,sass,Javascript,Asp.net,Webpack,Sass,我需要帮助连接样式加载器scss加载器 我尝试在webpack.config.js中为 vue组件: @import '@/styles/mixin.scss'; webpack.config.js: .... { test: /\.scss$/, exclude: /(node_modules)/, use: [ 'style-loader', 'css-loader', 'sass-loader' ] }, .

我需要帮助连接样式加载器scss加载器

我尝试在webpack.config.js中为

vue组件:

@import '@/styles/mixin.scss';
webpack.config.js:

....
    {
    test: /\.scss$/,
    exclude: /(node_modules)/,
    use: [
      'style-loader',
      'css-loader',
      'sass-loader'
    ]
  },
....
但总是有错误

Error: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
undefined
^
  File to import not found or unreadable: src/styles/mixin.scss.

有什么办法可以解决这个问题吗?

在vue组件导入模块中,有路径'src/name.scss'更改它,loader works会有帮助吗?

是我的失败,@import“src/styles/mixin.scss”不正确