javascript - webpack multi-entry configuration problem, the packaged result becomes that each html refers to all packaged js files
黄舟2017-06-30 09:55:12
0
2
749
Like the title How should I configure it so that html can mount the corresponding js file. Because the file has hash, there is no way to write it with htmlWebpackPlugin. Or is there any way to solve this problem?
Can I define multiple HtmlWebpackPlugins in plugins, and specify the corresponding Chunk in each Plugin, as follows
Made some modifications upstairs
You put the original file under src/view...
The produced file will be placed in dist/'view/' + name + '.html'