vue 全局引入 scss 文件 (推荐)
- <template>
- <div id="app">
- <router-view/>
- </div>
- </template>
- <script>
- export default {
- name: App
- }
- </script>
- <style src="./assets/base.sCSS" lang="scss">
- </style>
直接在 app.vue 中得 style 标签中 src 引入就 ok
来源: http://www.bubuko.com/infodetail-2526954.html