Using Sass sourcemaps with multiple files included -


i'm moving workflow use sourcemaps sass, , going well, i'm having trouble overwriting main.scss every time make change in chrome devtools.

my file structure this:

scss - main.scss   |- inc       |-_mixins.scss       |-_typo.scss       |- etc... 

and main.scss contains multiple @import "inc/mixins"; lines, each different filenames.

i created sourcemap, using sass --sourcemap scss/main.scss css/main.css , started watching files using sass --sourcemap --watch scss:css, (all found in tut).

i've mapped working files in chrome devtools.

it works initially, in if examine elements in devtools, see code in scss. if edit value, overwrites scss/main.scss contents of css/main.css, massively weird.

anyone shed light on this?

so, figured out.

i followed tut working, had mapped local files incorrectly.

if manually setting sass sourcemapping, must careful map included files correct locations. somehow had 1 mapped main.scss, , overwriting on changes.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -