Last active
July 28, 2022 18:06
-
-
Save Shelob9/b39528a8249bab327d59e71e0afb47ac to your computer and use it in GitHub Desktop.
Laravel vite for Vue 2 Requires Vue 2.7+ and https://github.com/vitejs/vite-plugin-vue2 https://twitter.com/Josh412/status/1552717169632415744
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig } from 'vite'; | |
import laravel from 'laravel-vite-plugin'; | |
import vue from '@vitejs/plugin-vue2' | |
export default defineConfig({ | |
plugins: [ | |
laravel([ | |
'resources/js/app.js', | |
]), | |
vue({ | |
template: { | |
transformAssetUrls: { | |
base: null, | |
includeAbsolute: false, | |
}, | |
}, | |
}), | |
], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment