Va1 / browser-sync-webpack-plugin

Easily use BrowserSync in your Webpack project.
MIT License
369 stars 40 forks source link

When files array populated, browsersync forces a page reload #87

Closed joepagan closed 4 years ago

joepagan commented 4 years ago

Hey,

HMR styles update fine and does NOT force a page refresh when I save a .scss file:

new BrowserSyncPlugin(
      {
        open: 'external',
        host: 'dev.domain.com',
        port: 3000,
        proxy: 'http://dev.domain.com:4040/',
      },
      {
        reload: false,
      },
    ),
  ],

This forces a page refresh when I save a .scss file:

new BrowserSyncPlugin(
      {
        open: 'external',
        host: 'dev.domain.com',
        port: 3000,
        proxy: 'http://dev.domain.com:4040/',
        files: [
          'templates/**/*.twig',
        ],
      },
      {
        reload: false,
      },
    ),
  ],

Please advise.

joepagan commented 4 years ago

I may have just remembered that we dynamically manipulate some twig files on builds... sorry for the noise.