fix(scripts/build): declare variable before calling function
This commit is contained in:
parent
5a085a46d4
commit
a93249cdb2
1 changed files with 3 additions and 3 deletions
|
|
@ -18,12 +18,12 @@ await rm(GeneratedAssetsDir, { recursive: true, force: true })
|
|||
)
|
||||
.catch()
|
||||
|
||||
// If this file is being run directly, build the project
|
||||
if (main === import.meta.filename) build()
|
||||
|
||||
const Dev =
|
||||
process.argv.includes('--dev') || process.env.NODE_ENV === 'development'
|
||||
|
||||
// If this file is being run directly, build the project
|
||||
if (main === import.meta.filename) build()
|
||||
|
||||
export default async function build(dev = Dev, log = true) {
|
||||
const start = performance.now()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue