How can I rename files with Grunt, based on the respective file's parent folder name?

前端 未结 5 691
借酒劲吻你
借酒劲吻你 2021-01-30 10:28

I have a the following structure:

src/
    modules/
        module1/
            js/
                main.js
            scss/
                main.scss
                 


        
5条回答
  •  梦如初夏
    2021-01-30 11:09

    You could simply use the options: expand : true, flatten: true

    No need for custom rename callbacks.

提交回复
热议问题