Skip to content

Remove sass source maps#41

Open
bronzehedwick wants to merge 1 commit into
mainfrom
fix/remove-source-maps
Open

Remove sass source maps#41
bronzehedwick wants to merge 1 commit into
mainfrom
fix/remove-source-maps

Conversation

@bronzehedwick

Copy link
Copy Markdown
Contributor

Source maps are useful in development, but the source map pointer is added to production files in dist. The source map files themselves are (rightly) not included in the NPM package. This can cause an extra network request and an error.

To solve, remove source maps from compiled SASS files.

Source maps are useful in development, but the source map pointer is
added to production files in dist. The source map files themselves are
(rightly) not included in the NPM package. This can cause an extra
network request and an error.

To solve, remove source maps from compiled SASS files.
@bronzehedwick

Copy link
Copy Markdown
Contributor Author

I ran into this on a project, where Drupal omits an error on every page, as it tries to load a sourcemap file that doesn't exist.
CleanShot 2026-06-26 at 19 25 43@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant