'gulp dev-release' js and css file paths replacement error
- Linguagem predominante
- JavaScript
- Estrelas
- 11.3k
- Forks
- 3k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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/'
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.