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

前端 未结 9 1647
予麋鹿
予麋鹿 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:05

    useminPrepare: {
            loyalty: {
                src: '<%= loyalty.app %>/Views/index.tpl',
                options: {
                    dest: '.',
                    flow: {
                        html: {
                            steps: {
                                js: ['concat', 'uglifyjs'],
                                css: ['cssmin']
                            },
                            post: {}
                        }
                    }
                }
            }
        },
    
    
    
    
    
    

    use '.' as destination in gruntfile.

提交回复
热议问题