+
+
+
-@section('content-wrapper')
+
-
-
-@stop
\ No newline at end of file
+
diff --git a/src/stubs/views/layouts/style.stub b/src/stubs/views/layouts/style.stub
deleted file mode 100644
index f055fd8..0000000
--- a/src/stubs/views/layouts/style.stub
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/stubs/vite.stub b/src/stubs/vite.stub
new file mode 100644
index 0000000..670f670
--- /dev/null
+++ b/src/stubs/vite.stub
@@ -0,0 +1,46 @@
+import { defineConfig, loadEnv } from "vite";
+import vue from "@vitejs/plugin-vue";
+import laravel from "laravel-vite-plugin";
+import path from "path";
+
+export default defineConfig(({ mode }) => {
+ const envDir = "../../../";
+
+ Object.assign(process.env, loadEnv(mode, envDir));
+
+ return {
+ build: {
+ emptyOutDir: true,
+ },
+
+ envDir,
+
+ server: {
+ host: process.env.VITE_HOST || "localhost",
+ port: process.env.VITE_PORT || 5174,
+ },
+
+ plugins: [
+ vue(),
+
+ laravel({
+ hotFile: "../../../public/$LOWER_NAME$-vite.hot",
+ publicDirectory: "../../../public",
+ buildDirectory: "$LOWER_NAME$/build",
+ input: [
+ "src/Resources/assets/css/app.css",
+ "src/Resources/assets/js/app.js",
+ ],
+ refresh: true,
+ }),
+ ],
+
+ experimental: {
+ renderBuiltUrl(filename, { hostId, hostType, type }) {
+ if (hostType === "css") {
+ return path.basename(filename);
+ }
+ },
+ },
+ };
+});
\ No newline at end of file
diff --git a/src/stubs/webpack.stub b/src/stubs/webpack.stub
deleted file mode 100644
index 7666a41..0000000
--- a/src/stubs/webpack.stub
+++ /dev/null
@@ -1,39 +0,0 @@
-const mix = require("laravel-mix");
-
-if (mix == 'undefined') {
- const { mix } = require("laravel-mix");
-}
-
-require("laravel-mix-merge-manifest");
-
-if (mix.inProduction()) {
- var publicPath = 'publishable/assets';
-} else {
- var publicPath = "../../../public/vendor/$LOWER_NAME$/assets";
-}
-
-mix.setPublicPath(publicPath).mergeManifest();
-mix.disableNotifications();
-
-mix.js(__dirname + "/src/Resources/assets/js/app.js", "js/admin.js")
- .copy(__dirname + "/src/Resources/assets/images", publicPath + "/images")
- .sass(__dirname + "/src/Resources/assets/sass/app.scss", "css/admin.css")
- .options({
- processCssUrls: false
- }).vue();
-
-mix.webpackConfig({
- resolve: {
- alias: {
- 'vue$': 'vue/dist/vue.runtime.js'
- }
- }
-});
-
-if (! mix.inProduction()) {
- mix.sourceMaps();
-}
-
-if (mix.inProduction()) {
- mix.version();
-}
\ No newline at end of file