(code)
| 30 | .replaceAll('? ?', '??'); |
| 31 | |
| 32 | const fixHtml = (code) => code |
| 33 | .replaceAll(' loop', '~loop') |
| 34 | .replaceAll(' autoplay', '~autoplay') |
| 35 | .replaceAll(' src', '~src') |
| 36 | .replaceAll(' id', '~id'); |
| 37 | |
| 38 | const stripJs = (path) => writeFileSync(path, stripCode(readFileSync(path, 'utf8'))); |
| 39 | const stripHtml = (path) => writeFileSync(path, stripCode(fixHtml(readFileSync(path, 'utf8')))); |