html.disableHtmlFolder

  • Type: boolean
  • Default: false

Remove the folder of the HTML files. When this option is enabled, the generated HTML file path will change from [name]/index.html to [name].html.

WARNING

Deprecated: This configuration is deprecated, please use html.outputStructure instead.

Example

By default, the structure of HTML files in the dist directory is:

/dist
└── html
    └── main
        └── index.html

Enable the html.disableHtmlFolder config:

export default {
  html: {
    disableHtmlFolder: true,
  },
};

After recompiling, the directory structure of the HTML files in dist is:

/dist
└── html
    └── main.html

If you want to set the path of the HTML files, use the output.distPath.html config.

ON THIS PAGE