✔ npm init -y Wrote to /Users/magicyou/www/test_webpack/package.json: { "name": "test_webpack", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" }
安装webpack
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
npm install webpack webpack-cli -D
✔ npm install webpack webpack-cli -D npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ ......... ... npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN test_webpack@1.0.0 No description npm WARN test_webpack@1.0.0 No repository field.
+ webpack-cli@4.8.0 + webpack@5.52.1 added 121 packages from 158 contributors and audited 121 packages in 60.95s
17 packages are looking for funding run `npm fund` for details
✔ npm install html-webpack-plugin -D npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/... ... + html-webpack-plugin@5.3.2 added 33 packages from 19 contributors and audited 154 packages in 9.446s
27 packages are looking for funding run `npm fund` for details
found 0 vulnerabilities
安装插件 webpack-dev-server,解析html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
npm install webpack-dev-server -D
✔ npm install webpack-dev-server -D npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/...
... npm WARN test_webpack@1.0.0 No description npm WARN test_webpack@1.0.0 No repository field.
+ webpack-dev-server@4.2.1 added 205 packages from 139 contributors and audited 359 packages in 37.916s
54 packages are looking for funding run `npm fund` for details