使用'gulp build'更改js,css和图像文件的URL路径

时间:2016-09-02 00:48:46

标签: javascript html css url gulp

由于Yeoman不再使用Grunt,我不确定Gulp如何通过gulp build更改HTML / CSS / JS文件的URL。我不知道要在gulpfile.js中添加什么来做到这一点。

基本上,我怎么能拥有它,所以我的所有URL都改变了:

background-image:url('/images/example.jpg')
<img src="/images/example.jpg"/>

到此:

background-image:url('/examplefolder/examplefolder2/images/example.jpg')
<img src="/examplefolder/examplefolder2/images/example.jpg"/>
在pulp-build过程中

由于

0 个答案:

没有答案