Skip to content

Commit

Permalink
Merge pull request #79 from uswds/jm-bugfix-sourcemaps-path
Browse files Browse the repository at this point in the history
USWDS-Compile - Bugfix: Fix sourcemaps pathing
  • Loading branch information
thisisdano authored Nov 15, 2023
2 parents 2389859 + d2db180 commit c0f3209
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ function buildSass() {
return src([`${paths.dist.theme}/*.scss`.replace("//", "/")])
.pipe(sourcemaps.init({ largeFile: true }))
.pipe(
sass({ includePaths: buildSettings.includes }).on("error", handleError)
sass({
outputStyle: "compressed",
includePaths: buildSettings.includes,
}).on("error", handleError)
)
.pipe(replace(/\buswds @version\b/g, `based on uswds v${pkg}`))
.pipe(postcss(buildSettings.plugins))
Expand Down

0 comments on commit c0f3209

Please sign in to comment.