Browse Source

fix postcss bug

Pan 7 years ago
parent
commit
bcceb545d9
3 changed files with 5 additions and 2 deletions
  1. 4 0
      src/App.vue
  2. 0 1
      src/main.js
  3. 1 1
      src/styles/index.scss

+ 4 - 0
src/App.vue

@@ -9,4 +9,8 @@ export default {
9 9
   name: 'app'
10 10
 }
11 11
 </script>
12
+<style lang="scss">
13
+  @import './styles/index.scss'; // 全局自定义的css样式
14
+</style>
15
+
12 16
 

+ 0 - 1
src/main.js

@@ -8,7 +8,6 @@ import ElementUI from 'element-ui'
8 8
 import 'element-ui/lib/theme-default/index.css'
9 9
 import NProgress from 'nprogress'
10 10
 import 'normalize.css/normalize.css'
11
-import '@/styles/index.scss' // 全局自定义的css样式
12 11
 import '@/assets/iconfont/iconfont'
13 12
 import IconSvg from '@/components/Icon-svg/index.vue'
14 13
 

+ 1 - 1
src/styles/index.scss

@@ -1,5 +1,5 @@
1 1
 @import './element-ui.scss';
2
-@import "./mixin.scss";
2
+@import './mixin.scss';
3 3
 body {
4 4
   -moz-osx-font-smoothing: grayscale;
5 5
   -webkit-font-smoothing: antialiased;