minify icon indicating copy to clipboard operation
minify copied to clipboard

error on minifying multiple files

Open Mantou1233 opened this issue 1 year ago • 4 comments
trafficstars

$ minify ongeki/src/js/*.js > ongeki/ongeki-functions.js
Error: ENOENT: no such file or directory, open 'D:\0P\otoge-db\ongeki\src\js\*.js'
    at async open (node:internal/fs/promises:639:25)
    at async readFile (node:internal/fs/promises:1249:14)
    at async optimize (D:\0P\otoge-db\node_modules\minify\lib\minify.js:60:18)
    at async minify (D:\0P\otoge-db\node_modules\minify\lib\minify.js:35:12)
    at async Promise.all (index 0) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'D:\\0P\\otoge-db\\ongeki\\src\\js\\*.js'
}

why wouldnt this syntax work? afaik it works on others

Mantou1233 avatar Oct 24 '24 11:10 Mantou1233

Globs not supported, but this good idea for a PR

coderaiser avatar Oct 25 '24 20:10 coderaiser

Do you want all globs was joined in final bundle?

coderaiser avatar Oct 31 '24 06:10 coderaiser

yes it is only supported on linux rn

Mantou1233 avatar Nov 01 '24 09:11 Mantou1233

Linux and Mac works good, and Windows not? Are you up for a PR?

coderaiser avatar Nov 02 '24 17:11 coderaiser

Closed due to a long time of inactivity 🏝

coderaiser avatar Aug 25 '25 20:08 coderaiser