Skip to content

Commit

Permalink
Add support for existing Sass source maps in *.scss files
Browse files Browse the repository at this point in the history
Whilst not strictly necessary, packaged Sass files in GOV.UK Frontend are processed by PostCSS + Autoprefixer so we should reflect this when inspecting original sources in the browser
  • Loading branch information
colinrotherham committed Sep 14, 2023
1 parent 1949185 commit 0832c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ function _generateCssSync (sassPath, cssPath, options = {}) {
quietDeps: true,
loadPaths: [projectDir],
sourceMap: true,
sourceMapIncludeSources: true,
style: 'expanded'
})

Expand Down
1 change: 1 addition & 0 deletions lib/errorServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function runErrorServer (error) {
css: 'text/css',
ico: 'image/x-icon',
js: 'text/javascript',
map: 'application/json',
mjs: 'text/javascript',
png: 'image/png',
svg: 'image/svg+xml',
Expand Down

0 comments on commit 0832c38

Please sign in to comment.