- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 107
 
Open
Labels
bugSomething isn't workingSomething isn't workingdiscussionOngoing discussion / decision-makingOngoing discussion / decision-makingfiletypesNon-module filesNon-module files
Description
Describe the bug
When placing foo/index.htm into public folder, build command produces an error.
In development, this works fine – /foo/ correctly served as HTML
When running build, I get
Unexpected token (Note that you need plugins to import files that are not JavaScript)
Changing file estension from .htm to .html fixes the problem.
To Reproduce
Steps to reproduce the behavior:
- Go to 
/public - Add a folder 'foo' and put 
index.htminto it with some html inside - Run 
npm run startand navigate to/foo/in browser - Run 
npm run buildand see error:
Unexpected token (Note that you need plugins to import files that are not JavaScript) 
Expected behavior
I’d expect .htm to behave the same way as .html. Build successfully copies foo/index.html into dist
Desktop (please complete the following information):
- OS: macOS 10.14.6
 - Browser: Firefox, Brave
 - WMR Version 1.3.2
 
Additional context
Not a huge deal, but showing an error about htm not being supported might save time for someone.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdiscussionOngoing discussion / decision-makingOngoing discussion / decision-makingfiletypesNon-module filesNon-module files