Article From:https://segmentfault.com/q/1010000011697908
Question:

As a result, each business module has a folder, and each page under the business module has a folder. Its html, CSS (less), JS are named by index, including its pictures stored in the same folder:

Require compilation results to output only html, with folder name, CSS and JS to link and script output to html, pictures to base64 output, the results of the directory as follows:

- module1/
    - page1.html
    - page2.html
- module2/
    - page1.html
    - page2.html

Answer 0:

Multiple pages only need to define multiple entries, and each layer of directory can be retrieved recursively in the entry. It is recommended to refer to entry and html-webpack-plugin plug-in.

Leave a Reply

Your email address will not be published. Required fields are marked *