简体   繁体   English

Asp.Net Core中webpack上的sass-loader

[英]sass-loader on webpack in Asp.Net Core

I need help in connecting the style loader scss-loader 我在连接样式加载器scss-loader时需要帮助

i try include sass-loader in webpack.config.js for 我尝试将sass-loader包含在webpack.config.js中

vue-component: VUE成分:

@import '@/styles/mixin.scss';

webpack.config.js: webpack.config.js:

....
    {
    test: /\.scss$/,
    exclude: /(node_modules)/,
    use: [
      'style-loader',
      'css-loader',
      'sass-loader'
    ]
  },
....

but have all times error 但是总是有错误

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

Any ideas how to cure this? 有什么想法可以解决吗?

在vue组件导入模块中,路径为“ src / name.scss”,对其进行更改,加载程序即可工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM