Instalado vite
This commit is contained in:
parent
e0d17e052b
commit
21b16e0243
3 changed files with 1597 additions and 14834 deletions
16399
package-lock.json
generated
16399
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "npm run development",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||
"watch": "npm run development -- --watch",
|
||||
"watch-poll": "npm run watch -- --watch-poll",
|
||||
|
@ -10,14 +11,14 @@
|
|||
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --config=node_modules/laravel-mix/setup/webpack.config.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue2": "^2.3.3",
|
||||
"axios": "^0.27.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"laravel-mix": "^6.0.49",
|
||||
"resolve-url-loader": "^2.3.1",
|
||||
"laravel-vite-plugin": "^1.3.0",
|
||||
"sass": "^1.20.1",
|
||||
"sass-loader": "^8.0.0",
|
||||
"vite": "^6.3.5",
|
||||
"vue": "^2.7.16",
|
||||
"vue-loader": "^15.11.1",
|
||||
"vue-template-compiler": "^2.7.16"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
23
vite.config.mjs
Normal file
23
vite.config.mjs
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue2';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
},
|
||||
plugins: [
|
||||
laravel({
|
||||
input: ['resources/js/app.js', 'resources/sass/app.scss'],
|
||||
refresh: true,
|
||||
}),
|
||||
vue(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': '/resources/js',
|
||||
'vue$': 'vue/dist/vue.esm.js',
|
||||
},
|
||||
},
|
||||
});
|
Loading…
Add table
Reference in a new issue