Remove all advertising-related code

This commit is contained in:
2023-09-18 22:43:12 +02:00
parent 2d7bceed00
commit 0063851ef5
22 changed files with 182 additions and 626 deletions

View File

@@ -6,27 +6,6 @@ import terser from '@rollup/plugin-terser';
const production = !process.env.ROLLUP_WATCH;
function serve() {
let server;
function toExit() {
if (server) server.kill(0);
}
return {
writeBundle() {
if (server) return;
server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], {
stdio: ['ignore', 'inherit', 'inherit'],
shell: true
});
process.on('SIGTERM', toExit);
process.on('exit', toExit);
}
};
}
const builddir = "../res/static/svelte"
export default [
"file_viewer",
@@ -84,7 +63,7 @@ export default [
// If we're building for production (npm run build
// instead of npm run dev), minify
production && terser()
production && terser(),
],
watch: {
clearScreen: false