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

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

    If I'm understanding your question correctly I think you need the 'root' option:

    {
      useminPrepare: {
        html: 'html/index.html',
        options: {
        root: 'app'
        dest: 'dist'
        }
      }
    }
    

    Though index.html is in the html/ folder the files lookup will be from app/ not html/

提交回复
热议问题