Skip to content
New issue

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

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

Already on GitHub? # to your account

When using import to import browser-sync, it can run without using create. Does this mean that create is not needed? #2068

Open
8 tasks
aboutjquery opened this issue May 12, 2024 · 0 comments

Comments

@aboutjquery
Copy link

Issue details

Browser-sync can run without using create. Does this mean that create is not needed?

Please provide issue details here.

In the official documentation create is included in each example, but I found that it can run correctly without it.

Steps to reproduce/test case

import browserSync from 'browser-sync';

gulp.task('browser-sync', function() {
    browserSync.init({
        server: {
            baseDir: "./"
        }
    });
});

Please provide necessary steps for reproduction of this issue, or better the
reduced test case (without any external dependencies)
.

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 3.0.2" ]
  • Node [ 20.12.2 ]
  • Npm [ 10.5.0 ]

Affected platforms

  • linux
  • [ x ] windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • [ x ] Gulp
  • Grunt
  • CLI

If CLI, please paste the entire command below

{cli command here}

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

{Browsersync init code here}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant