Configure Grunt File Name Matching for Files with Multiple Dots

后端 未结 3 1492
北恋
北恋 2020-12-24 13:52

I just started using grunt, and love it. I keep running into an issue that seems like it might be pretty common. Here it is. I have files named so that words after a dot are

3条回答
  •  我在风中等你
    2020-12-24 14:33

    Note that there is another option "extDot" that you can use to specify after which dot the ext should apply (first or last):

    E.g.

    files: [{
      expand: true,
      src: ['*.js','!*min.js'],
      dest: 'js',
      cwd: 'js',
      ext: '.min.js',
      extDot: 'last'
    }]
    

提交回复
热议问题