最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

laravel - Vite manifest not found at: csscustom.cssmanifest.json - Stack Overflow

programmeradmin0浏览0评论

On my host website after building for production Larevel 11 throws an error Vite manifest not found at: /xxxx/xxxxxx.xxxxxxxxx.xx/laravel.xxxxx.xxxxxxx.xx/public/resources/css/custom.css/manifest.json which just seems crazy. Looking for a manifest in a directory below the css file?

The vite directive my the blade file is @vite("resources/js/app.js", "resources/css/custom.css")

My vite configuration is:

import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";

export default defineConfig({
  plugins: [
    laravel({
      input: [
        "resources/css/app.css",
        "resources/js/app.js",
        "resources/css/custom.css",
      ],
      refresh: true,
    }),
  ],
});

Has anyone seen this or have a clue what I need to be looking for?

On my host website after building for production Larevel 11 throws an error Vite manifest not found at: /xxxx/xxxxxx.xxxxxxxxx.xx/laravel.xxxxx.xxxxxxx.xx/public/resources/css/custom.css/manifest.json which just seems crazy. Looking for a manifest in a directory below the css file?

The vite directive my the blade file is @vite("resources/js/app.js", "resources/css/custom.css")

My vite configuration is:

import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";

export default defineConfig({
  plugins: [
    laravel({
      input: [
        "resources/css/app.css",
        "resources/js/app.js",
        "resources/css/custom.css",
      ],
      refresh: true,
    }),
  ],
});

Has anyone seen this or have a clue what I need to be looking for?

Share Improve this question asked Feb 1 at 1:48 Bob RockefellerBob Rockefeller 4,6063 gold badges31 silver badges35 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

just change @vite("resources/js/app.js", "resources/css/custom.css") to @vite(["resources/js/app.js", "resources/css/custom.css"]) and run "npm run build" and it becomes fine

OK, sorry for wasting your time. I don't read very well, I guess.

The @vite syntax should have been @vite(["resources/js/app.js", "resources/css/custom.css"]).

Problem solved. May this will help someone else who didn't read closely enough.

发布评论

评论列表(0)

  1. 暂无评论