When we package the webpackjs file, we introduce the global main.js in the index.html interface, as shown below: Must import When packaging, the unpacked files are divided into two files, one is a local disk file, and the other is a file in memory. This is very troublesome. In the face of this problem, we have a solution. Install this plug-in 1. First, we enter 2. Then configure the options in the webpack.config.js configuration file. Installation Complete webpack.config.js introduces html-webpack-plugin Configure the generated interface file 3. After the plugin is installed, comment out the src="budle.js" of index and restart the project. 4. After restarting the project, the interface will automatically package a buld.js and import it in the index interface Summarize The above is the editor's introduction to using html-webpack-plugin' to generate HTML page plug-in in memory. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: Detailed explanation of JSONObject usage
>>: Deploy grafana+prometheus configuration using docker
Putting input and img on the same line, the img ta...
COALESCE is a function that refers to each parame...
The function to be implemented today is the follo...
<br />This article is mainly to let beginner...
MouseEvent When the mouse performs a certain oper...
Preface Today, after synchronizing the order data...
Table of contents first step Step 2 Step 3 Step 4...
I finally finished the project at hand, and the m...
Table of contents 1. System monitoring 2. File Op...
This article shares the installation tutorial of ...
Sometimes, in order to facilitate the export and ...
Official documentation: https://dev.mysql.com/doc...
Preface Recently, a data was operated incorrectly...
Problem Description The button style is icon + te...
I have encountered the problem that MySQL can con...