fix build process
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 17s
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 17s
This commit is contained in:
parent
be7bb66e70
commit
c7e751695f
3 changed files with 21 additions and 18 deletions
|
|
@ -21,15 +21,10 @@ jobs:
|
|||
run: |
|
||||
npm ci
|
||||
|
||||
- name: Prepare dist directory
|
||||
run: |
|
||||
rm -rf dist
|
||||
cp -r public dist
|
||||
ls -la dist/
|
||||
|
||||
- name: Build Vue app
|
||||
run: |
|
||||
npm run build
|
||||
ls -la dist/
|
||||
ls -la dist/assets/dist/
|
||||
|
||||
- name: Deploy via FTP
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ body {
|
|||
font-family: "DM Sans", sans-serif;
|
||||
text-align: left;
|
||||
color: rgb(190, 9, 9);
|
||||
background: blue;
|
||||
}
|
||||
|
||||
p {
|
||||
|
|
@ -39,7 +40,18 @@ p {
|
|||
padding-right: 20mm;
|
||||
padding-bottom: 20mm;
|
||||
padding-left: 20mm;
|
||||
padding: 0mm;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: DM Sans;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 48px;
|
||||
text-align: start;
|
||||
color: rgb(0, 0, 0);
|
||||
background: rgba(113, 54, 255, 0.1);
|
||||
margin: 32.16px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
----
|
||||
|
|
|
|||
|
|
@ -4,26 +4,22 @@ import vue from '@vitejs/plugin-vue';
|
|||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
publicDir: false, // Les assets statiques sont gérés par Kirby dans public/
|
||||
base: '/',
|
||||
build: {
|
||||
outDir: 'dist/assets/dist',
|
||||
emptyOutDir: true,
|
||||
manifest: false,
|
||||
outDir: 'dist',
|
||||
minify: false,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: 'index.js',
|
||||
chunkFileNames: '[name].js',
|
||||
entryFileNames: 'assets/dist/index.js',
|
||||
chunkFileNames: 'assets/dist/[name].js',
|
||||
assetFileNames: (assetInfo) => {
|
||||
// Le CSS principal doit s'appeler index.css pour correspondre à header.php
|
||||
if (assetInfo.name && assetInfo.name.endsWith('.css')) {
|
||||
return 'index.css';
|
||||
return 'assets/dist/index.css';
|
||||
}
|
||||
return '[name].[ext]';
|
||||
return 'assets/dist/[name].[ext]';
|
||||
},
|
||||
},
|
||||
},
|
||||
build: {
|
||||
minify: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue