What's the difference between webpack cli and webpack package builds?

scenario 1

const config = {
  entry: {},
  output: {},
  module: {},
  plugins: {},
}

webapck(config, (err, stat) => {})
The products of

and

are inconsistent, mainly because there is no .html file generated by html-webpack-plugin in scenario 1

.

so what"s the difference between the two build methods?

Mar.21,2021

makes no difference. In the first way, you can also add html-webpack-plugin to generate html

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea35c3-47a21.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea35c3-47a21.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?