Skip to content

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

Open
@aboutjquery

Description

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}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions