Naming convention for assets (images, css, js)?

前端 未结 9 778
孤城傲影
孤城傲影 2021-01-29 20:33

I am still struggling to find a good naming convention for assets like images, js and css files used in my web projects.

So, my current would be:

CSS:

9条回答
  •  忘掉有多难
    2021-01-29 20:58

    /Assets/
      /Css
      /Images
      /Javascript (or Script)
        /Minified
        /Source
    

    Is the best structure I've seen and the one I prefer. With folders you don't really need to prefix your CSS etc. with descriptive names.

提交回复
热议问题