ThaWill
ThaWill
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
And of course it works on local, idk what happens on production
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
This is how I reference the css in this view with Vite. <!-- Scripts --> @vite(['resources/css/app.css', 'resources/js/app.js'])
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
No description
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
No description
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
But now it doesn't load the CSS. Dev Tools Terminal Error
Mixed Content: The page at 'https://library-php-production-1bc2.up.railway.app/login' was loaded over HTTPS, but requested an insecure stylesheet 'http://library-php-production-1bc2.up.railway.app/build/assets/app-6MzHoY9L.css'. This request has been blocked; the content must be served over HTTPS.
Mixed Content: The page at 'https://library-php-production-1bc2.up.railway.app/login' was loaded over HTTPS, but requested an insecure stylesheet 'http://library-php-production-1bc2.up.railway.app/build/assets/app-6MzHoY9L.css'. This request has been blocked; the content must be served over HTTPS.
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
The instance on railway is running now, its deploying
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
{
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.2",
"alpinejs": "^3.4.2",
"autoprefixer": "^10.4.2",
"axios": "^1.6.4",
"laravel-vite-plugin": "^1.0",
"postcss": "^8.4.31",
"tailwindcss": "^3.1.0",
"vite": "^5.0"
}
}
{
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.2",
"alpinejs": "^3.4.2",
"autoprefixer": "^10.4.2",
"axios": "^1.6.4",
"laravel-vite-plugin": "^1.0",
"postcss": "^8.4.31",
"tailwindcss": "^3.1.0",
"vite": "^5.0"
}
}
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
Had to run it from the console
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
Ok, I think I got it
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
The tool you shared its not working for me :cryingman:
21 replies
RRailway
Created by ThaWill on 6/27/2024 in #✋|help
npm run build doesn't work, Laravel 11 + Vite
21 replies