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
rep / egrep Syntax: grep [-cinvABC] 'word'...
1. Configure local yum source 1. Mount the ISO im...
1. Basic use of firewalld start up: systemctl sta...
Table of contents 1. View hook 1. Things to note ...
Table of contents Common array methods pop() unsh...
Table of contents 1. Introduction to platform bus...
Table of contents Results at a Glance Heart Effec...
Use native js to implement a simple calculator (w...
Recently, I have done a simple study on the data ...
Scenario: When starting tomcat in docker (version...
This is what happened. Today I was playing with G...
The recommended code for playing background music ...
The input box always displays the input history wh...
After resetting the system, the MySQL database th...
Sometimes in a project, due to some irreversible ...