This commit is contained in:
riku6460 2023-06-13 17:05:18 +09:00
parent 7bf877e226
commit d4903a476a
No known key found for this signature in database
GPG Key ID: 27414FA27DB94CF6

View File

@ -38,8 +38,8 @@ gulp.task('copy:frontend:locales', cb => {
gulp.task('build:backend:script', () => {
const clientManifestExists = fs.existsSync('./built/_vite_/manifest.json');
const clientEntry = clientManifestExists ?
JSON.parse(fs.readFileSync('./built/_vite_/manifest.json', 'utf-8'))['src/init.ts'].file
: 'src/init.ts'
JSON.parse(fs.readFileSync('./built/_vite_/manifest.json', 'utf-8'))['src/_boot_.ts'].file
: 'src/_boot_.ts'
return gulp.src(['./packages/backend/src/server/web/boot.js', './packages/backend/src/server/web/bios.js', './packages/backend/src/server/web/cli.js', './packages/backend/src/server/web/flush.js'])
.pipe(replace('LANGS', JSON.stringify(Object.keys(locales))))