gulp - Can browser sync overwrite CSS file hosted on CDN on injection? -


i not sure how frame question in post title, here's full story:

i'm working on shopify theme , bit annoyed fact have save css changes, switch browser tab , hit reload see i've done (yes did discover theme gem detects local changes , uploads them, doesn't give me reloading...).

so plan come gulp task following:

  1. detects changes scss files
  2. compiled them css
  3. injects changes using browser sync proxies shopify theme url localhost address

the trouble i'm facing shopify uploads changed assets instantly cdn , loads them there when previewing theme. since css included different domain, guess browser sync doesn't recognize file anymore , 1 overwrite changes inject.

so remaining question following:

if theme preview url proxied local address http://localhost:3000 loads css file https://cdn.shopify.com/s/files/1/0878/7368/t/2/assets/style.css?12713062062911383123, can tell browser sync in gulp overwrite file changes inject?

hope i'm making sense here.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -