Logo
Explore Help
Sign In
1berry/Hemmelig.app
1
0
Fork 0
You've already forked Hemmelig.app
Code Issues Packages Projects Releases Wiki Activity
Hemmelig.app/pre.js

12 lines
315 B
JavaScript
Raw Permalink Normal View History

refactor: create the html before we build the application Signed-off-by: bjarneo <bjarne.oeverli@gmail.com>
2023-04-02 20:23:20 +02:00
import config from 'config';
refactor: use fastify vite for the dev server (#284) * refactor: use fastify vite for the server by doing this we do not need to have local hacks for the routes. No local proxy needed. Everything just works. * fix: update the dockerfile build path * fix: update package.json * fix: fonts path
2024-03-11 13:43:20 +01:00
import fs from 'fs';
refactor: create the html before we build the application Signed-off-by: bjarneo <bjarne.oeverli@gmail.com>
2023-04-02 20:23:20 +02:00
import template from 'y8';
import html from './html.js';
// This is scripts that has to be run before the
// frontend build process
fs.writeFileSync(
refactor: use fastify vite for the dev server (#284) * refactor: use fastify vite for the server by doing this we do not need to have local hacks for the routes. No local proxy needed. Everything just works. * fix: update the dockerfile build path * fix: update package.json * fix: fonts path
2024-03-11 13:43:20 +01:00
'client/index.html',
refactor: create the html before we build the application Signed-off-by: bjarneo <bjarne.oeverli@gmail.com>
2023-04-02 20:23:20 +02:00
template(html, { config: `'${JSON.stringify(config.get('__client_config'))}';` })
);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 116ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API