build working
This commit is contained in:
parent
fc576e917b
commit
79cac8a093
5 changed files with 31 additions and 4 deletions
0
.gitlab-ci.yml
Normal file
0
.gitlab-ci.yml
Normal file
13
index.html
Normal file
13
index.html
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Design to light</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script type="module" src="/src/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -23,7 +23,12 @@
|
||||||
<link rel="manifest" href="/manifest.webmanifest">
|
<link rel="manifest" href="/manifest.webmanifest">
|
||||||
<meta name="theme-color" content="#FFFFFF">
|
<meta name="theme-color" content="#FFFFFF">
|
||||||
|
|
||||||
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
<?php if (Dir::exists('assets/dist')): ?>
|
||||||
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
<script type="module" src="<?= url('assets/dist/index.js') ?>" defer></script>
|
||||||
|
<link rel="stylesheet" href="<?= url('assets/dist/index.css') ?>">
|
||||||
|
<?php else: ?>
|
||||||
|
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
||||||
|
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
||||||
|
<?php endif ?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,16 @@
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import vue from "@vitejs/plugin-vue";
|
import vue from "@vitejs/plugin-vue";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
|
base: "/",
|
||||||
|
build: {
|
||||||
|
outDir: "dist",
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
entryFileNames: "assets/dist/[name].js",
|
||||||
|
assetFileNames: "assets/dist/[name].[ext]",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue