How to include css files in Vue 2

后端 未结 4 1605
囚心锁ツ
囚心锁ツ 2020-12-01 03:00

I\'m new to vue js and trying to learn this. I installed a fresh new version of vue webpack in my system. I\'m having a css, js and images of this a theme template which I w

4条回答
  •  無奈伤痛
    2020-12-01 03:12

    Try using the @ symbol before the url string. Import your css in the following manner:

    import Vue from 'vue'
    
    require('@/assets/styles/main.css')
    

    In your App.vue file you can do this to import a css file in the style tag

    
    
    
    

提交回复
热议问题