Skip to content

Commit bbe9221

Browse files
committed
Adds vitrine to vite config
1 parent 8b8f1ca commit bbe9221

4 files changed

Lines changed: 21 additions & 1 deletion

File tree

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"scripts": {
33
"dev": "vite",
44
"build": "vite build",
5+
"preview": "vite preview",
56
"pronto-install": "npx @imarc/pronto@latest --non-interactive y ./resources y n y ./resources/images"
67
},
78
"devDependencies": {
@@ -13,6 +14,7 @@
1314
},
1415
"dependencies": {
1516
"@imarc/pronto": "^2.0.3",
17+
"@imarc/vitrine": "^1.2.2",
1618
"@vitejs/plugin-vue": "^5.2.3",
1719
"vue": "^3.5.13"
1820
},

vite.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import fs from 'fs';
99
import { defineConfig } from "vite";
1010
import { resolve } from 'path';
1111
import vue from '@vitejs/plugin-vue';
12+
import vitrine from '@imarc/vitrine'
1213

1314
// Get the relative path of the vite.config.js file for the alias
1415
const fullPath = import.meta.url.slice(0, import.meta.url.lastIndexOf('/'));
@@ -40,6 +41,22 @@ export default defineConfig(({ mode }) => {
4041
}
4142
}
4243
}),
44+
vitrine({
45+
basePaths: [
46+
47+
/**
48+
* This should be set to the base directory for your front end files.
49+
*/
50+
'resources',
51+
],
52+
includes: [
53+
/**
54+
* These are the entry points to include. These will also need to get
55+
* included into your project.
56+
*/
57+
'/resources/js/index.js',
58+
],
59+
}),
4360
{
4461
handleHotUpdate({ file, server }) {
4562
if (file.endsWith('.php')) {

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
swiper "^11.2.6"
7171
vue "^3.4.31"
7272

73-
"@imarc/vitrine@^1.2.1":
73+
"@imarc/vitrine@^1.2.1", "@imarc/vitrine@^1.2.2":
7474
version "1.2.2"
7575
resolved "https://registry.npmjs.org/@imarc/vitrine/-/vitrine-1.2.2.tgz"
7676
integrity sha512-BYF4tpkzRuCrXndtPoxFtGckTt+pF2FUNK3QtzQPuBiQK4gImgGRl+lrxsGPguCQKi6AuiiTVCVTV+IML7UETQ==

0 commit comments

Comments
 (0)