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

[BUG] running multiple time on saving multi file at a time #12

Open
danny007in opened this issue May 21, 2021 · 5 comments
Open

[BUG] running multiple time on saving multi file at a time #12

danny007in opened this issue May 21, 2021 · 5 comments

Comments

@danny007in
Copy link

danny007in commented May 21, 2021

For example if save 4 multiple file on a time in folder it compile 4 times,
but it has should compile only once

const scss = () => {
  return src(paths.src.scss + '/**/*.scss', {
    since: lastRun(scss),
    sourcemaps: true
  })
    .pipe(dependents())
    .pipe(sass(sassOptions).on('error', sass.logError))
    .pipe(postcss(postcssOptions))
    .pipe(dest(paths.temp.css, { sourcemaps: '.' }))
    .pipe(browserSync.stream())
}

const serve = () => {
  browserSync.init({
    server: paths.temp.base
  })

  watch([paths.src.scss], { delay: 500 }, series(scss))
}
[10:58:14] Starting 'scss'...
[Browsersync] 4 files changed (adminlte.css, adminlte.css, adminlte.css, adminlte.css)
[10:58:22] Finished 'scss' after 7.31 s

this is a wonderful devDep,
plz solve this fast

@danny007in danny007in changed the title run multiple time on saving multi file af a time run multiple time on saving multi file at a time May 21, 2021
@danny007in danny007in changed the title run multiple time on saving multi file at a time [BUG] running multiple time on saving multi file at a time May 21, 2021
@danny007in
Copy link
Author

Just make an filter to remove duplicate path, before sending to src

@danny007in
Copy link
Author

Any solution

@danny007in
Copy link
Author

Can i expect this issue will be solved,

@danny007in

This comment has been minimized.

@danny007in

This comment has been minimized.

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

1 participant