'gulp dev-release' js and css file paths replacement error
- Lenguaje dominante
- JavaScript
- Estrellas
- 11.3k
- Forks
- 3k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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/'
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.