fixnute cesty k obrazok pre build,
fixnute parsovanie package.json
This commit is contained in:
parent
9f9cb76740
commit
b1e6037ab7
@ -1,8 +1,12 @@
|
||||
// generateHtaccess.js
|
||||
console.log('Vygenerujem .htaccess...');
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { baseUrl } from '../vite.config.js';
|
||||
|
||||
|
||||
|
||||
// Obsah .htaccess súboru
|
||||
const htaccessContent = `
|
||||
<IfModule mod_rewrite.c>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div id="header">
|
||||
<div class="logo">
|
||||
<router-link to="/">
|
||||
<img src="public/bugreport.svg" height="48" width="48" />
|
||||
<img src="/public/bugreport.svg" height="48" width="48" />
|
||||
</router-link>
|
||||
<router-link to="/">
|
||||
<h1>Bug Report</h1>
|
||||
|
@ -2,21 +2,21 @@
|
||||
<div id="about">
|
||||
<div>
|
||||
<h1>O aplikácii</h1>
|
||||
<img src="public/bugreport.svg" height="100" alt="" />
|
||||
<img src="/public/bugreport.svg" height="100" alt="" />
|
||||
<h2>Bug Report</h2>
|
||||
<p>Verzia aplikácie: {{ version }} | Zostavené: {{ build }}</p>
|
||||
<p>Autor: <a href="mailto:mino@tpsoft.org">Ing. Igor Miňo</a></p>
|
||||
<p>
|
||||
Backend:
|
||||
<a href="https://www.php.net" target="_blank"
|
||||
><img src="public/php-power-micro.png" alt="" /> PHP 8.2</a
|
||||
><img src="/public/php-power-micro.png" alt="" /> PHP 8.2</a
|
||||
>
|
||||
| Databaza:
|
||||
<a href="https://www.sqlite.org" target="_blank"
|
||||
><img src="public/SQLite370.svg" height="20" alt="" /> SQLite</a
|
||||
><img src="/public/SQLite370.svg" height="20" alt="" /> SQLite</a
|
||||
>
|
||||
| Frontend:
|
||||
<a href="https://vuejs.org" target="_blank"><img src="public/vue.svg" height="20" alt="" /> Vue 3</a>
|
||||
<a href="https://vuejs.org" target="_blank"><img src="/public/vue.svg" height="20" alt="" /> Vue 3</a>
|
||||
</p>
|
||||
<p>
|
||||
Zdrojové kódy:
|
||||
|
@ -1,6 +1,10 @@
|
||||
import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import pkg from "./package.json";
|
||||
// import pkg from "./package.json";
|
||||
import { createRequire } from 'node:module'
|
||||
|
||||
const require = createRequire(import.meta.url)
|
||||
const pkg = require('./package.json')
|
||||
|
||||
const subpath = "/bugreport/";
|
||||
export const baseUrl = subpath + "webapp/dist/";
|
||||
|
Loading…
x
Reference in New Issue
Block a user