Config no found with VanillaJS compilation

Eva María Mera Vivar - Aug 29 - - Dev Community

Hi Everyone!

I having problems with my app vanillaJS and the build with vite. I have the follow folders:

proyecto/
├── libs/               # Carpeta para librerías externas
│   ├── libreria1.js    # Ejemplo de librería externa
│   ├── libreria2.js    # Ejemplo de librería externa
├── node_modules/       # Dependencias del proyecto
├── src/                # Código fuente del proyecto
│   ├── styles/         # Archivo de entrada principal
│         ├── style.css         # Archivo de entrada principal
│   ├── components/         # Archivo de entrada principal
│         ├── compoente1.js         # Archivo de entrada principal
│   ├── main.js         # Archivo de entrada principal
├── index.html          # Archivo HTML principal
├── package.json        # Archivo de configuración de npm
├── vite.config.js      # Archivo de configuración de Vite
Enter fullscreen mode Exit fullscreen mode

but, when I run the npm run build only compilation the HTML, JS and CSS the root folder. The libs and CSS is link in the HTML. However, is no good.

My project need deploy in Heroku, and the npm startis ok. The build is ok, but the order folders is a problem.

Can I help me please?

.
Terabox Video Player