Webpack introduces HTML webpack plugin and reports an error

There is a problem in configuring webpack:

An error is reported when the HTML webpack plugin is introduced


At this time, you need to install webpack locally (that is, under the current project) to solve the problem

Note: This is the webpack 4 version. You need to install webpack cli

npm install --save-dev webpack webpack-cli


Similar Posts: