Skip to content

Commit 0c8d2e1

Browse files
committed
fix .vue 文件中 style 标签导致的 cssSyntaxError
升级 vue-loader 到 15.0.7 之前错误原因主要是 vue-loader 15.0.6 没有处理 cnpm 安装的 node_modules 中的一些路径情况,导致编译错误 ref: vuejs/vue-loader#1284
1 parent 5b0fde2 commit 0c8d2e1

File tree

5 files changed

+4898
-121
lines changed

5 files changed

+4898
-121
lines changed

Diff for: client/TodoItem.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import Todo from "./todo"
1919
}
2020
})
2121
export default class TodoItem extends Vue{
22-
//todo: Todo // TODO Fix warning
22+
todo!: Todo
23+
2324
mounted(){
2425
console.log("mounted", this.todo.content)
2526
}
@@ -37,6 +38,6 @@ export default class TodoItem extends Vue{
3738
}
3839
</script>
3940

40-
<style>
41+
<style lang="css">
4142
.todo-item{ color:#ff0099;}
4243
</style>

0 commit comments

Comments
 (0)