Skip to content

Commit

Permalink
fix: npx stylus compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Mar 29, 2021
1 parent 5893d61 commit 3b7da41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 colors
// Additional color
backgroundHoverColor = #F3F4F6
backgroundActiveColor = #DBEAFE

Expand Down
4 changes: 2 additions & 2 deletions scripts/buildAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ npm run assets:build -- vue-quill
)

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

0 comments on commit 3b7da41

Please sign in to comment.