chore: only show rollup-plugin-analyzer on DEBUG=1 (#158)

This commit is contained in:
Nolan Lawson 2021-07-02 09:58:05 -07:00 committed by GitHub
parent 704bc31571
commit c8dc6b701e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import preprocess from 'svelte-preprocess'
import analyze from 'rollup-plugin-analyzer'
import cssnano from 'cssnano'
const { NODE_ENV } = process.env
const { NODE_ENV, DEBUG } = process.env
const dev = NODE_ENV !== 'production'
const preprocessConfig = preprocess({
@ -73,7 +73,7 @@ const baseConfig = {
!dev && 'console.log'
].filter(Boolean)
}),
!dev && analyze({ summaryOnly: true })
DEBUG && analyze({ summaryOnly: true })
],
external: [
'./database.js',