You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building an multi-page app (HTML, CSS and TypeScript) that, thus far, works almost flawlessly on development. Each of my components have their own folder (with a index.html, styles.scss and main.ts). My intent is that each index.html file shows up together in the dist folder, when building for production.
On build, however, only the root index.html is compiled; all my other assets and components (and their corresponding nested 'index.html' files) are ignored. My vite.config.js is as follows:
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
sidneifjr
changed the title
Multi-pages app on build, ignores other files other than index.html
Multi-pages app on build, ignores files other than index.html
Jul 18, 2022
I'm building an multi-page app (HTML, CSS and TypeScript) that, thus far, works almost flawlessly on development. Each of my components have their own folder (with a index.html, styles.scss and main.ts). My intent is that each index.html file shows up together in the dist folder, when building for production.
On build, however, only the root index.html is compiled; all my other assets and components (and their corresponding nested 'index.html' files) are ignored. My vite.config.js is as follows:
`
`
I've already checked the following issues, but none managed to solve it:
#7891
#2656 (comment)
#2958
#7275
Reproduction
https://stackblitz.com/edit/vitejs-vite-clevpb?file=dist/index.html
System Info
System: OS: Linux 5.10 Debian GNU/Linux 10 (buster) 10 (buster) CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz Memory: 10.79 GB / 12.43 GB Container: Yes Shell: 5.0.3 - /bin/bash Binaries: Node: 16.16.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.11.0 - /usr/local/bin/npm npmPackages: vite: ^3.0.0 => 3.0.0
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: