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

modified style wasn't update on github page #35

Open
ducva opened this issue Sep 17, 2018 · 1 comment
Open

modified style wasn't update on github page #35

ducva opened this issue Sep 17, 2018 · 1 comment

Comments

@ducva
Copy link

ducva commented Sep 17, 2018

Hi,

I tried to modify some styles in stylus files. It worked well on my localhost.
But when I push to github, my modifications were gone.

Can you explain how Github build our sites with gulp?

Edit 1:

I found a problem in gulpfile.js

gulp.task('stylus', function() {
  gulp
    .src('src/styl/main.styl')
    .pipe(plumber())
    .pipe(
      stylus({
        use: [koutoSwiss(), prefixer(), jeet(), rupture()],
        compress: true,
      })
    )
    .pipe(gulp.dest('_site/assets/css/'))
    .pipe(browserSync.reload({ stream: true }))
    .pipe(gulp.dest('assets/css'))
})

Currently, pipe to 'assets/css' is after pipe(browserSync) and there is no main.css file created in 'assets/css'.
But if I move it up, pip to 'assets/css' before pipe(browserSync), it's ok

gulp.task('stylus', function() {
  gulp
    .src('src/styl/main.styl')
    .pipe(plumber())
    .pipe(
      stylus({
        use: [koutoSwiss(), prefixer(), jeet(), rupture()],
        compress: true,
      })
    )
    .pipe(gulp.dest('_site/assets/css/'))
    .pipe(gulp.dest('assets/css'))
    .pipe(browserSync.reload({ stream: true }))
})
@berserker1
Copy link

@ducva your modification seems to work in my case, thanks

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