Update project structure and enhance build process
Some checks failed
Go / build (push) Has been cancelled

- Removed unnecessary entries from .gitignore related to the app/web/dist directory.
- Updated app/web/.gitignore to exclude the dist directory.
- Added rollup-plugin-copy to package.json and updated rollup.config.js to copy static assets during the build process.
- Introduced new CSS and JS files in the dist directory for improved styling and functionality.
- Updated index.html to reference new global CSS and JS files, enhancing the overall user interface.
- Added favicon and other image assets to the dist directory for branding consistency.
This commit is contained in:
2025-10-11 08:05:50 +01:00
parent 506ad66aeb
commit 4cf3d9cfb5
15 changed files with 673 additions and 14 deletions

View File

@@ -5,6 +5,7 @@ import terser from "@rollup/plugin-terser";
import resolve from "@rollup/plugin-node-resolve";
import livereload from "rollup-plugin-livereload";
import css from "rollup-plugin-css-only";
import copy from "rollup-plugin-copy";
const production = !process.env.ROLLUP_WATCH;
@@ -71,6 +72,13 @@ export default {
// If we're building for production (npm run build
// instead of npm run dev), minify
production && terser(),
// Copy static assets from public to dist
copy({
targets: [
{ src: "public/*", dest: "dist" }
]
}),
],
watch: {
clearScreen: false,