DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

Why bootstrap js not loaded in my vite config?

As I ask Upon:

In my laravel 10 vite.config.js I try to load the bootstrap js:

import { defineConfig } from 'vite'
import laravel from 'laravel-vite-plugin';
import inject from "@rollup/plugin-inject";

import { readdirSync,lstatSync } from 'fs';
import { resolve } from 'path';

function getFilesFromDir(dir, fileTypes) {
    const filesToReturn = [];

    function walkDir(currentPath) {


I try to load bootstrap js using vite. But my vite seems not to be able to. Can u help me?

Top comments (0)