Gruntjs 告诉grunt在生成时更改映像路径

Gruntjs 告诉grunt在生成时更改映像路径,gruntjs,yeoman,yeoman-generator,Gruntjs,Yeoman,Yeoman Generator,我需要帮助告诉grunt更改html中的路径,因为它们在我们的生产环境中与开发环境中不同 例如: Development: /images/image.jpg Production: /different/path/images/image.jpg 同样,这些文件不在scss文件中,而是在html中: <img src="/images/image.jpg"> <img src="/different/path/images/image.jpg"> 发布“gru

我需要帮助告诉grunt更改html中的路径,因为它们在我们的生产环境中与开发环境中不同

例如:

Development: /images/image.jpg
Production: /different/path/images/image.jpg
同样,这些文件不在scss文件中,而是在html中:

<img src="/images/image.jpg">
<img src="/different/path/images/image.jpg">

发布“grunt build”时需要更改为: