Output index.html in location dist/index.html #4658
-
Hi, As part of deployment to Azure static web app, the index.html needs to be on the root level folder. how do you output index.html directly under dist folder and not wrapped in a main folder? I have tried below but the html is still wrapped in a main folder. thanks :) distPath:{ |
Beta Was this translation helpful? Give feedback.
Answered by
chenjiahan
Sep 15, 2023
Replies: 1 comment 1 reply
-
Try this: export default {
source: {
// The default is 'main'
mainEntryName: 'index',
},
output: {
distPath: {
// The default is 'html'
html: '',
},
},
html: {
disableHtmlFolder: true,
},
}; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AsuraKev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this: