Git ignoring all minified suffixed files

前端 未结 3 1643
逝去的感伤
逝去的感伤 2021-01-17 09:53

I currently have something like:

javascripts/
    plugin.js
    plugin.min.js

stylesheets/
    style.css
    style.min.css

How would I get

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 10:24

    You have several solutions, depending of what you really need.

    Ignore all minified files in your project :

    *.min.*
    

    Ignore all minified files in a folder :

    assets/*.min.*
    

    Ignore only JS/CSS minified files in your project :

    *.min.js
    *.min.css
    

提交回复
热议问题