Skip to content

Commit 01fd607

Browse files
authored
[5.x] Readd vite support (#1421)
* Reapply "[5.x] Change Laravel Mix asset bundling to Vite setup (#1413)" (#1418) This reverts commit 6667681. * Reapply "[5.x] feature: this adds the vite integrity plugin to support assetsA…" (#1417) This reverts commit a43adc8. * fix: vite dev mode when hotfile is detected
1 parent 40dc809 commit 01fd607

28 files changed

+2143
-16944
lines changed

package-lock.json

Lines changed: 1866 additions & 15999 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,29 @@
33
"private": true,
44
"scripts": {
55
"dev": "npm run development",
6-
"development": "mix",
7-
"watch": "mix watch",
8-
"watch-poll": "mix watch -- --watch-options-poll=1000",
9-
"hot": "mix watch --hot",
6+
"development": "NODE_ENV=development vite build --mode=development",
7+
"watch": "NODE_ENV=development vite build --mode=development --watch",
108
"prod": "npm run production",
11-
"production": "mix --production"
9+
"production": "NODE_ENV=production vite build"
1210
},
1311
"devDependencies": {
14-
"axios": "^1.6.0",
12+
"@vitejs/plugin-vue2": "^2.3.1",
13+
"axios": "^1.6.8",
1514
"bootstrap": "~5.1.3",
16-
"chart.js": "^2.5.0",
17-
"highlight.js": "^10.4.1",
18-
"laravel-mix": "^6.0.13",
19-
"md5": "^2.2.1",
20-
"moment": "^2.29.4",
21-
"moment-timezone": "^0.5.35",
22-
"phpunserialize": "1.*",
15+
"chart.js": "^2.9.4",
16+
"highlight.js": "^10.7.3",
17+
"laravel-vite-plugin": "^1.0.2",
18+
"md5": "^2.3.0",
19+
"moment": "^2.30.1",
20+
"moment-timezone": "^0.5.45",
21+
"phpunserialize": "^1.3.0",
2322
"resolve-url-loader": "^5.0.0",
24-
"sass": "^1.49.7",
25-
"sass-loader": "^12.4",
23+
"sass": "^1.74.1",
2624
"sql-formatter": "^4.0.2",
27-
"vue": "^2.5.7",
28-
"vue-json-pretty": "^1.6.2",
29-
"vue-loader": "^15.9.6",
30-
"vue-router": "^3.0.1",
31-
"vue-template-compiler": "^2.5.21"
25+
"vite": "^5.2.8",
26+
"vite-plugin-manifest-sri": "^0.2.0",
27+
"vue": "^2.7.16",
28+
"vue-json-pretty": "^1.9.5",
29+
"vue-router": "^3.6.5"
3230
}
3331
}

public/app-dark.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

public/app.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

public/app.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/build/app.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/app.js

Lines changed: 103 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

public/build/manifest.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"resources/img/favicon.png": {
3+
"file": "favicon.png",
4+
"src": "resources/img/favicon.png",
5+
"integrity": "sha384-tqnRilkeRgqFt3SUYaxuaQs14WOwuU8Gvk3sqRZmnyWZVhr1Kk19Ecr7dFMb4HZo"
6+
},
7+
"resources/js/app.js": {
8+
"file": "app.js",
9+
"name": "app",
10+
"src": "resources/js/app.js",
11+
"isEntry": true,
12+
"css": [
13+
"app.css"
14+
],
15+
"integrity": "sha384-EV5vlraT2g7leIzueltC7I+UzR7uBT4ndQF5b1G9I+kUrQ4XL0DREuRw/XiU/U3P"
16+
},
17+
"resources/sass/styles-dark.scss": {
18+
"file": "styles-dark.css",
19+
"src": "resources/sass/styles-dark.scss",
20+
"isEntry": true,
21+
"integrity": "sha384-/sLOxh+NTFEdcZ8svIuVTv/lSL65X3QGIXhExXAhntQYWjiez1CQbv4ICbtwRfd8"
22+
},
23+
"resources/sass/styles.scss": {
24+
"file": "styles.css",
25+
"src": "resources/sass/styles.scss",
26+
"isEntry": true,
27+
"integrity": "sha384-4HOmv1E51xgqbUYzCYXaRXPRja5nEho6eq/L/CKs0LlidzTGNTk81VtCAHqLiYSC"
28+
}
29+
}

public/build/styles-dark.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/styles.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/img/horizon.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)