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: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
- name: Prepare dist directory
|
|
||||||
run: |
|
|
||||||
rm -rf dist
|
|
||||||
cp -r public dist
|
|
||||||
ls -la dist/
|
|
||||||
|
|
||||||
- name: Build Vue app
|
- name: Build Vue app
|
||||||
run: |
|
run: |
|
||||||
npm run build
|
npm run build
|
||||||
|
ls -la dist/
|
||||||
ls -la dist/assets/dist/
|
ls -la dist/assets/dist/
|
||||||
|
|
||||||
- name: Deploy via FTP
|
- name: Deploy via FTP
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ body {
|
||||||
font-family: "DM Sans", sans-serif;
|
font-family: "DM Sans", sans-serif;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: rgb(190, 9, 9);
|
color: rgb(190, 9, 9);
|
||||||
|
background: blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
|
@ -39,7 +40,18 @@ p {
|
||||||
padding-right: 20mm;
|
padding-right: 20mm;
|
||||||
padding-bottom: 20mm;
|
padding-bottom: 20mm;
|
||||||
padding-left: 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/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
publicDir: false, // Les assets statiques sont gérés par Kirby dans public/
|
base: '/',
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist/assets/dist',
|
outDir: 'dist',
|
||||||
emptyOutDir: true,
|
minify: false,
|
||||||
manifest: false,
|
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
entryFileNames: 'index.js',
|
entryFileNames: 'assets/dist/index.js',
|
||||||
chunkFileNames: '[name].js',
|
chunkFileNames: 'assets/dist/[name].js',
|
||||||
assetFileNames: (assetInfo) => {
|
assetFileNames: (assetInfo) => {
|
||||||
// Le CSS principal doit s'appeler index.css pour correspondre à header.php
|
// Le CSS principal doit s'appeler index.css pour correspondre à header.php
|
||||||
if (assetInfo.name && assetInfo.name.endsWith('.css')) {
|
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