Prevent source maps from being generated
This commit is contained in:
parent
91d5cedfc2
commit
727e742142
1 changed files with 0 additions and 4 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue