COmpress output

This commit is contained in:
Kognise 2019-04-06 16:43:52 -04:00
parent bfd619e330
commit 2b900b7e66
No known key found for this signature in database
GPG key ID: 19AA40F6884A36D6
4 changed files with 4 additions and 196 deletions

2
dev.js
View file

@ -35,7 +35,7 @@ chokidar.watch('index.html', { ignoreInitial: true }).on('all', () => {
chokidar.watch('src/*.scss', { ignoreInitial: true }).on('all', async (event, file) => {
console.log('> Stylesheet changed')
sass.render({ file }, async (errors, { css }) => {
sass.render({ file, outputStyle: 'compressed' }, async (errors, { css }) => {
if (errors) {
console.log('> Sass errors!')
console.log(errors)