Skip to content

打包生成HTML能放到根目录下吗 #6322

Answered by kirillbashtenko
aasmn asked this question in Q&A
Discussion options

You must be logged in to vote

@aasmn https://modernjs.dev/en/configure/app/html/disable-html-folder.html

 html: {
    disableHtmlFolder: true,
  },
  output: {
    distPath: {
      html: '/',
    },
  },

I think at best you will get something like
dist/main.html
cause it would build it per entry and since we might have multiple we need a different names for them.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zllkjc
Comment options

Answer selected by zllkjc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants