GithubHelp home page GithubHelp logo

Comments (3)

Va1 avatar Va1 commented on September 1, 2024

@danlbob
hey! I had a look into your configuration and it looks OK to me, as browsersync reloads only after compilation is complete, everything should work fine. I haven no idea why it fails, I need to make some experiments with the setup of your style. Hopefully will return to you on Monday with some results.

Let me know if this is not actual already.

from browser-sync-webpack-plugin.

itzikbenh avatar itzikbenh commented on September 1, 2024

I have the same issue exactly. Webpack is just extremely slow and browsersync is just impatient :).
The only way to solve this is to specify the files you want to watch with BrowserSync.
Don't watch the assets that needs to be compiled.

Here's my config:

new BrowserSyncPlugin({
    proxy: 'localhost:8888',
    port: 3000,
    files: [
        '**/*.php'
    ],
    ghostMode: {
        clicks: false,
        location: false,
        forms: false,
        scroll: false
    },
    injectChanges: true,
    logFileChanges: true,
    logLevel: 'debug',
    logPrefix: 'wepback',
    notify: true,
    reloadDelay: 0
})

from browser-sync-webpack-plugin.

danlbob avatar danlbob commented on September 1, 2024

In my case I think the delay is due to sync lag that occurs with the docker environment I am proxying. So, yeah the only solution I've found is to add a delay of a few seconds. Annoying but probably not a Browsersync issue.

from browser-sync-webpack-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.