webpack2项目引入ts后报错@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-compiler?
2021-05-30 20:00
标签:变量 lib mob option global name 文件 vue ack 在webpack.base.conf.js中的vue配置中加入ts解析 webpack2项目引入ts后报错@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-compiler? 标签:变量 lib mob option global name 文件 vue ack 原文地址:https://www.cnblogs.com/-liujia/p/14653236.html{
test: /\.vue$/,
loader: ‘vue-loader‘,
options: {
loaders: {
ts: [
{
loader: ‘ts-loader‘,
options: {
appendTsSuffixTo: [/\.vue$/]
}
}],
scss: [
‘vue-style-loader!css-loader!sass-loader‘,
// 全局sass变量
{
loader: ‘sass-resources-loader‘,
options: {
// 需更改为项目中实际scss文件路径
resources: path.resolve(__dirname, ‘../src-mobile/styles/global.scss‘),
},
},
], //
文章标题:webpack2项目引入ts后报错@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-compiler?
文章链接:http://soscw.com/index.php/essay/89660.html