How should I configure grunt-usemin to work with relative path

前端 未结 9 1754
予麋鹿
予麋鹿 2021-01-30 23:13

I have a grunt project backed by a yeoman-generator that I\'ve built based on the generator-webapp, if it\'s of any help, you can find it on GitHub

The grunt project mak

9条回答
  •  我在风中等你
    2021-01-31 00:07

    I used multiple targets as shown below:

     useminPrepare: {
            target1 : {
                    src : ['target1/*.html'],
                    options : {
                        dest: 'out'
                    }
                },
    
                target2 : {
                    src : ['target2/folder/*.html'],
                    options : {
                        dest: 'out/subfolder'
                    }
                }
        },
    

    Then in the HTML block you could this:

    
    
    
                                     
                  
提交回复
热议问题