Spaces:
Build error
Build error
File size: 283 Bytes
a8b3f00 |
1 2 3 4 5 6 7 8 9 10 |
const fs = require('node:fs')
// https://www.npmjs.com/package/uglify-js
const UglifyJS = require('uglify-js')
const { readFileSync, writeFileSync } = fs
writeFileSync('public/embed.min.js', UglifyJS.minify({
'embed.js': readFileSync('public/embed.js', 'utf8'),
}).code, 'utf8')
|