Closed Temepest74 closed 3 weeks ago
Update: no error if I do
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import laravelTranslations from "vite-plugin-laravel-translations";
export default defineConfig({
plugins: [
laravel({
input: ["resources/css/app.css", "resources/js/app.js"],
refresh: true,
}),
laravelTranslations.default({
includeJson: false,
namespace: false,
}),
],
server: {
hmr: {
host: "localhost",
},
},
});
Cool thanks. @immersedone is there a way we can not need the .default?
You can use https://www.npmjs.com/package/vite-plugin-laravel-i18next which has support for Typescript and supports all the localization features of Laravel.
I get this error when building my assets