ahmadawais / WPGulp

An advanced Gulp workflow for WordPress development with extensive documentation. Used by 40,000+ themes and plugins.
https://twitter.com/MrAhmadAwais/
MIT License
1.77k stars 303 forks source link

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

Open kossahl opened 2 years ago

kossahl commented 2 years ago

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