We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b81ffd commit 83cef40Copy full SHA for 83cef40
scripts/terse.ts
@@ -10,8 +10,8 @@ const terseDir = async (dir: string) => {
10
11
const terseFile = async (file: string) => {
12
if (extname(file) === '.js') {
13
- const { code: tersed } = minify( await readFile( file, 'utf-8' ) )
14
- await writeFile( file, tersed )
+ const result = minify( await readFile( file, 'utf-8' ) )
+ if (result.code) await writeFile( file, result.code )
15
}
16
17
0 commit comments