Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
fix: examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zoy-l committed Mar 3, 2021
1 parent 165d96b commit 9ed6c00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/normal-vue/.zmirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export default {
content: 'zmi, zmi-cli'
}
],
scripts: [`console.log(111);`, { src: ``, defer: true }],
// scripts: [`console.log(111);`, { src: ``, defer: true }],
styles: [`body { color: red; }`]
}
4 changes: 1 addition & 3 deletions packages/zmi-utils/src/clearConsole.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
function clearConsole() {
export default function clearConsole() {
if (process.env.ZMI_TEST !== 'true') {
process.stdout.write(process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H')
}
}

export default clearConsole

0 comments on commit 9ed6c00

Please sign in to comment.