10 lines
366 B
JavaScript
10 lines
366 B
JavaScript
import fs from 'fs'
|
|
|
|
const url = 'https://github.com/zardoy/minecraft-web-client/raw/sounds-generated/sounds.js'
|
|
const savePath = 'dist/sounds.js'
|
|
fetch(url).then(res => res.text()).then(data => {
|
|
fs.writeFileSync(savePath, data, 'utf8')
|
|
if (fs.existsSync('.vercel/output/static/')) {
|
|
fs.writeFileSync('.vercel/output/static/sounds.js', data, 'utf8')
|
|
}
|
|
})
|