Skip to content

Commit 29b51a7

Browse files
committed
chore: remove semicolon before iife
1 parent aa762c1 commit 29b51a7

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

scripts/buildAssets.ts

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ npm run assets:build -- vue-quill
2323
const targets: string[] = args._
2424
const devOnly: boolean = args.devOnly || args.d
2525
const prodOnly: boolean = !devOnly && (args.prodOnly || args.p)
26-
// const sourceMap = args.sourcemap || args.s
26+
const sourceMap = args.sourcemap || args.s
2727
const isRelease: boolean = args.release
2828
const buildAllMatching: string[] = args.all || args.a
2929
// const nextVersion: string =
@@ -73,14 +73,29 @@ npm run assets:build -- vue-quill
7373

7474
if (inputExt === '.styl' || inputExt === '.css') {
7575
if (!prodOnly)
76-
await execa('npx', ['stylus', input, '-o', output], {
77-
stdio: 'inherit',
78-
})
76+
await execa(
77+
'npx',
78+
['stylus', input, '-o', output, sourceMap ? '--sourcemap' : ''],
79+
{
80+
stdio: 'inherit',
81+
}
82+
)
7983
// create production build
8084
if (!devOnly)
81-
await execa('npx', ['stylus', input, '-o', outputProd, '-c'], {
82-
stdio: 'inherit',
83-
})
85+
await execa(
86+
'npx',
87+
[
88+
'stylus',
89+
input,
90+
'-o',
91+
outputProd,
92+
'-c',
93+
sourceMap ? '--sourcemap' : '',
94+
],
95+
{
96+
stdio: 'inherit',
97+
}
98+
)
8499
} else {
85100
console.log(chalk.redBright(`File extention not supported: ${input}`))
86101
}

0 commit comments

Comments
 (0)