webpack.config.js中配置: { test: /\.scss$/, loaders: [ 'style-loader', 'css-loader', 'sass-loader' ], // exclude: [helpers.root('src/index.html')] 注意这儿,把exclude去掉试试
},
查看更多关于React+webpack-Module Parse failed, Unexpected Char的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did222474