Skip to content

Commit

Permalink
Prevent source maps from being generated
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens committed Jun 28, 2020
1 parent 91d5ced commit 727e742
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ function buildDistFile(filename) {
.process(css, {
from: `./${filename}.css`,
to: `./dist/${filename}.css`,
map: { inline: false },
})
.then(result => {
fs.writeFileSync(`./dist/${filename}.css`, result.css)
if (result.map) {
fs.writeFileSync(`./dist/${filename}.css.map`, result.map)
}
return result
})
.then(result => {
Expand Down

0 comments on commit 727e742

Please sign in to comment.