How do I add a global scss file in Vue.JS that will compile?

前端 未结 5 1868
无人及你
无人及你 2021-01-13 15:07

I am trying to import a scss file within my VueJS project, where it will then compile and thus be able to use with my project. However, I need some help, as at present it si

5条回答
  •  鱼传尺愫
    2021-01-13 15:18

    There is some solutions to this situation.

    1. import your global css to index.html.
    2. import your css file to current component.
    3. assume you are using server side rendering with nuxt then you can put your css on nuxt.config.js file.
    4. you can use webpack

提交回复
热议问题