NUXT- assets and static folder - when to use which?

前端 未结 1 679
刺人心
刺人心 2021-02-03 23:29

Being new to NUXT, I am a bit confused about the difference between the assets and static folders.

in the documentation regarding this folders it says:

1条回答
  •  有刺的猬
    2021-02-03 23:46

    The content of assets folder will be process by webpack, if you use pre-processor for CSS like SASS, SCSS, or Stylus it will transform into generic CSS. Or maybe you put an image on that folder, it also will be optimized by webpack for production.

    And for static folder, it just a place where you can put all of your static asset, like an image for background or slider. It never touched by webpack.

    0 讨论(0)
提交回复
热议问题