Skip to content

Commit

Permalink
Embed sources in CSS sourcemaps
Browse files Browse the repository at this point in the history
    This flag tells Sass to embed the entire contents of the Sass files
    that contributed to the generated CSS in the source map. This may
    produce very large source maps, but it guarantees that the source
    will be available on any computer no matter how the CSS is served.

https://sass-lang.com/documentation/cli/dart-sass/#embed-sources
  • Loading branch information
ignisf authored and nickcharlton committed Sep 30, 2024
1 parent 0829202 commit a25088b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scripts": {
"build": "esbuild app/assets/javascripts/administrate/application.js --bundle --sourcemap --outdir=app/assets/builds/administrate --public-path=/assets/administrate",
"build:css": "sass ./app/assets/stylesheets/administrate/application.scss:./app/assets/builds/administrate/application.css ./app/assets/stylesheets/administrate-internal/docs.scss:./app/assets/builds/administrate-internal/docs.css --source-map --load-path=node_modules",
"build:css": "sass ./app/assets/stylesheets/administrate/application.scss:./app/assets/builds/administrate/application.css ./app/assets/stylesheets/administrate-internal/docs.scss:./app/assets/builds/administrate-internal/docs.css --source-map --embed-sources --load-path=node_modules",
"lint:css": "stylelint app/assets/stylesheets/administrate/**/*.scss"
},
"dependencies": {
Expand Down

0 comments on commit a25088b

Please sign in to comment.