akveo / akveo/blur-admin

'gulp dev-release' js and css file paths replacement error

未關閉
#512 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
11.3k
分支
3k
PR 合併指標
30 天內沒有已合併 PR

描述

when i run gulp task with dev-release in development environment as :

`gulp dev-release`,

only the css file paths are replaced ,the js file paths are not replaced, which bothers me a lot.
And finally, i solve it by merging 'dev-css-replace' and 'dev-js-replace' tasks into one gulp task 'dev-static-replace' like this:
```
gulp.task('dev-static-replace', ['dev-copy-assets'], function () {
return gulp.src(path.join(conf.paths.devDist, '*.html'))
.pipe($.replace(//g, ''))
.pipe($.replace(//g, '<script src="lib/$1">'))
.pipe(gulp.dest(conf.paths.devDist));
});
```

and, change the 'dev-release' task into :

```
gulp.task('dev-release', ['dev-static-replace']);
```

and it works!both the js and css file paths are replaced with the prefix 'lib/'

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。