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:
- detects changes scss files
- compiled them css
- 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
Post a Comment