WPGulp icon indicating copy to clipboard operation
WPGulp copied to clipboard

Browsersync injects wrong files when multiple style.css are linked in the html

Open kossahl opened this issue 3 years ago • 0 comments

Bug Report

Expected Behavior

My style source is configured as const styleSRC = './assets/scss/style.scss';

Thus I expect Browsersync to inject the wp-content/theme/my-theme/style.css (or style.min.css).

Actual Behavior

Instead Browsersync will inject wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css or any other file named the samed whichever is first linked in the html.

  1. node -v: 14.15.1

  2. npm -v: 6.14.8

  3. Operating system: Windows 10

  4. Browser and version (if relevant): tested in Firefox and Chrome

kossahl avatar Nov 05 '21 10:11 kossahl