【发布时间】:2017-08-03 13:34:04
【问题描述】:
考虑到有单个文件组件(如shown in the guide),
<style>
.example {
color: red;
}
</style>
<template>
<div class="example">hi</div>
</template>
在非模块化的 ES5/ES6 环境下,没有 Vue loader 怎么做同样的事情?
考虑到样式是作用域的,
<style scoped>
.example {
color: red;
}
</style>
有没有办法在非模块化环境中实现作用域 CSS?如果没有,有没有办法在模块化环境(Webpack)中实现它,但没有 Vue 加载器和自定义 .vue 格式?
【问题讨论】:
标签: javascript vuejs2 vue-loader