Skip to content

Commit

Permalink
fix: stylus command
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Apr 1, 2021
1 parent e27a9a2 commit 2dc794a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
2 changes: 1 addition & 1 deletion packages/vue-quill/src/assets/snow.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ backgroundColor = #fff
inactiveColor = #4B5563
shadowColor = #D1D5DB
textColor = #4B5563
// Additional color
// Additional colors
backgroundHoverColor = #F3F4F6
backgroundActiveColor = #DBEAFE

Expand Down
33 changes: 10 additions & 23 deletions scripts/buildAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,30 +72,17 @@ npm run assets:build -- vue-quill
)

if (inputExt === '.styl' || inputExt === '.css') {
if (!prodOnly)
await execa(
'npx',
['stylus', input, '-o', output, sourceMap ? '--sourcemap' : ''],
{
stdio: 'inherit',
}
)
if (!prodOnly) {
const args: string[] = ['stylus', input, '-o', output]
if (sourceMap) args.push('--sourcemap')
await execa('npx', args, { stdio: 'inherit' })
}
// create production build
if (!devOnly)
await execa(
'npx',
[
'stylus',
input,
'-o',
outputProd,
'-c',
sourceMap ? '--sourcemap' : '',
],
{
stdio: 'inherit',
}
)
if (!devOnly) {
const args: string[] = ['stylus', input, '-o', outputProd, '-c']
if (sourceMap) args.push('--sourcemap')
await execa('npx', args, { stdio: 'inherit' })
}
} else {
console.log(chalk.redBright(`File extention not supported: ${input}`))
}
Expand Down

0 comments on commit 2dc794a

Please sign in to comment.