Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbled text on replace text in js file #45

Closed
thdave opened this issue Apr 10, 2015 · 1 comment
Closed

Garbled text on replace text in js file #45

thdave opened this issue Apr 10, 2015 · 1 comment

Comments

@thdave
Copy link

thdave commented Apr 10, 2015

Here is my original text (bootstrap.js)
require(['js/main/main']);

Heres my glup task - (replace main/main with main/main-optimized-min)

gulp.task('replaceBootstrapText', function(){
gulp.src('src/bootstrap.js')
.pipe(replace('main/main', 'main/main-optimized.min'))
.pipe(gulp.dest(config.DEST));
});

Here is my result
require(['js/main/main']);imized.min']);

Can you tell me if its a bug or am I doing something incorrectly ?

@thdave
Copy link
Author

thdave commented Apr 10, 2015

Hi,

It was my error, my gulp tasks didn't run in order so the bootstrap.js got overwritten and garbled. For those with similar results use npm install --save-dev run-sequence
See npm site for details.

@lazd lazd closed this as completed Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants