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.
Replies: 2 comments 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.
-
有点麻烦 |
Beta Was this translation helpful? Give feedback.
Try this: