I switched to gulp-minify-css per those diffs; same results, other than gulp-minify-css was twice as fast as css-nano.
Strange that localhost and mysite.dev differ… does this suggest that something may be wrong on the server? I’m using VVV for this one. Does node on VVV need to match the local machine?
I’m having the same issue with Sage 8.4.1 - fresh install and I didn’t make any changes that would affect the build process. Both in Firefox and in Chrome, it’s only referencing main.css.
It appears that the sourcemap file is not being generated since there is no sourcemap file in dist/styles/
Just as an fyi, my issue wasn’t sourcemaps actually. The sourcemaps were generated fine. My issue turned out to be a performance one - localhost/browsersync take 30 seconds to load, which seems to stop the sourcemaps from always loading in the Chrome web inspector. But 10% of the time they did load. I’ve not yet found the reason for this performance issue, but seems related to VVV loading localhost slowly.
Wish I could help your sourcemap generation issue, but I’m as clueless as you.
I too am having issues with source maps for the watch command.
If i just ‘gulp’ the source maps can be used. Between using watch and the css being injected into the doc the source maps aren’t there unless i just run gulp.