Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kitar/shift-74765
Migrate from Laravel Mix to Vite
- Loading branch information
Showing
11 changed files
with
1,712 additions
and
15,333 deletions.
There are no files selected for viewing
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"dev": "npm run development", | ||
"development": "mix", | ||
"watch": "mix watch", | ||
"watch-poll": "mix watch -- --watch-options-poll=1000", | ||
"hot": "mix watch --hot", | ||
"prod": "npm run production", | ||
"production": "mix --production" | ||
"dev": "vite", | ||
"build": "vite build" | ||
}, | ||
"devDependencies": { | ||
"@alpinejs/intersect": "^3.10.2", | ||
"@tailwindcss/forms": "^0.5.0", | ||
"alpinejs": "^3.10.2", | ||
"axios": "^0.25", | ||
"laravel-echo": "^1.11.7", | ||
"laravel-mix": "^6.0.6", | ||
"lodash": "^4.17.19", | ||
"postcss": "^8.4.12", | ||
"pusher-js": "^7.1.0-beta", | ||
"tailwindcss": "^3.0.24", | ||
"trix": "^2.0.0-beta.0" | ||
"trix": "^2.0.0-beta.0", | ||
"vite": "^3.0.2", | ||
"laravel-vite-plugin": "^0.6.0", | ||
"autoprefixer": "^10.4.0" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require('./bootstrap'); | ||
import './bootstrap'; | ||
|
||
import Trix from 'trix' | ||
import Alpine from 'alpinejs' | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { defineConfig } from 'vite'; | ||
import laravel from 'laravel-vite-plugin'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
laravel({ | ||
input: [ | ||
'resources/css/app.css', | ||
'resources/js/app.js', | ||
], | ||
refresh: true, | ||
}), | ||
], | ||
}); |
This file was deleted.
Oops, something went wrong.