You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
SASS Source map file, e.g., main.css.map, refers the source path as: "../../app/_scss/main.scss", however this file path isn't accessible by the browser. From the browsers point of view main.scss lives under /_scss/. Adjusting Gruntfile to include '.' in connect.livereload.options.base eradicates the problem:
connect: {
options: {
port: 9000,
livereload: 35729,
// change this to '0.0.0.0' to access the server from outside
hostname: 'localhost'
},
livereload: {
options: {
open: true,
base: [
'.tmp',
'.jekyll',
// add this to fix 404 in sass source maps
'.',
'<%= yeoman.app %>'
]
}
}
}
The text was updated successfully, but these errors were encountered:
I haven't played around with sourcemaps yet. I'd prefer to generate sourcemaps into tmp and not reference anything outside of the tmp/app/dist folders when you're in the browser. If you can get that to work PRs gratefully accepted.
The issue doesn't lie with the path to the source map (.css.map), but with the path to the source itself (.scss). The source map file is currently properly generated and served out of .tmp directory, but the browser must be allowed access to the source file if browser editing of source files is to work. To serve the source file out of .tmp would complicate and increase the time needed to run grunt tasks.
SASS Source map file, e.g.,
main.css.map
, refers the source path as:"../../app/_scss/main.scss"
, however this file path isn't accessible by the browser. From the browsers point of viewmain.scss
lives under/_scss/
. Adjusting Gruntfile to include'.'
inconnect.livereload.options.base
eradicates the problem:The text was updated successfully, but these errors were encountered: