vue-loader不支持里面写样式
.vue文件加载正常,但是如果在.vue里面用到<style></style>里面写样式,就会报错
<template>
...
</template>
<script>
...
</script>
<style>
html {
width: 50px;
height: 50px;
}
</style>
报错信息
Uncaught Error: Module parse failed: Unexpected token (136:5)
You may need an appropriate loader to handle this file type.
|
|
| html {
| width: 50px;
| height: 50px;
安装 css-loader