Error `No loader is configured for ".html" files: src/#foo/index.html`
See original GitHub issueHi, I have a problem when a directory be prefixed with # and in that directory contains .html files.
To reproduce, make a directory called #foo, create a file index.html in that directory, run pnpm dev, then you got this:
Error `No loader is configured for ".html" files: src/#foo/index.html`
I’ve tried the original vite template, works fine, not sure why…
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
vite: No loader is configured for ".html" files - Stack Overflow
Trying to build a simple Vite project and every thing is right, but when I add a library(it's a privite library in my...
Read more >html-loader - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >esbuild in a simple html+js use case - DEV Community
In this series, I'll take a look on a simple usecase of js+html application, build with various js bundlers. After checking what's possible ......
Read more >Optimizing Static HTML And Images With Webpack
With a little work, Webpack can process HTML files just like it does JavaScript files. We can even optimize images referenced in the...
Read more >@craftamap/esbuild-plugin-html - npm
This plugin requires at least esbuild v0.12.26. Development was done on node.js 16, node.js 14 should also work though. There is currently no...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
that’s because your whole dir include “#” ,just remove it and fixed ):
Thanks for reproducing! I could confirm that it also happens in the very original template(not the vitesse one) of vite. strange… I’m going to report this issue in the upstream repo.