Initial commit
This commit is contained in:
24
stubs/nwidart-stubs/vite.stub
Normal file
24
stubs/nwidart-stubs/vite.stub
Normal file
@ -0,0 +1,24 @@
|
||||
const dotenvExpand = require('dotenv-expand');
|
||||
dotenvExpand(require('dotenv').config({ path: '../../.env'/*, debug: true*/}));
|
||||
|
||||
import { defineConfig } from 'vite';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
outDir: '../../public/build-$LOWER_NAME$',
|
||||
emptyOutDir: true,
|
||||
manifest: true,
|
||||
},
|
||||
plugins: [
|
||||
laravel({
|
||||
publicDirectory: '../../public',
|
||||
buildDirectory: 'build-$LOWER_NAME$',
|
||||
input: [
|
||||
__dirname + '/Resources/assets/sass/app.scss',
|
||||
__dirname + '/Resources/assets/js/app.js'
|
||||
],
|
||||
refresh: true,
|
||||
}),
|
||||
],
|
||||
});
|
Reference in New Issue
Block a user