Pageworks / papertrain

Papertrain: a Craft CMS 3 framework
http://download.papertrain.io
MIT License
5 stars 2 forks source link

Source Mapping #200

Closed codewithkyle closed 4 years ago

codewithkyle commented 5 years ago

We don't need to generate source maps since the transformed CSS file that is output maintains the same filename as the original, however, we could consider injecting a comment above the files CSS during the SASS render stage that contains the files location within the templates directory. It could be as simple as the following:

/* source=templates/my-neat-page/my-cool-component/my-cool-component.scss */

Edit: This message is in reference to the (lack of) CSS source mapping question that was posed in the First Steps Kent postmortem meeting.

codewithkyle commented 5 years ago

All JavaScript files are referring to the browsers JavaScript VM, we should look into source mapping the JavaScript files as well.

codewithkyle commented 4 years ago

No longer relevant since we switched away from appending the scripts source and Blob API.