怎么html文件打包,html文件如何打包?html文件打包的方法介绍

这是一篇关于Webpack的博客,详细记录了一次Webpack 4.15.1版本的打包过程,输出了打包后的文件大小、chunks信息以及一个警告提示,提醒未设置'mode'选项。内容涉及entry.js和index.html的处理,使用了css-loader和html-webpack-plugin。
摘要由CSDN通过智能技术生成

如下所示即打包成功Hash: 40112e2b8d4dc81b512b

Version: webpack 4.15.1

Time: 5299ms

Built at: 2018-07-11 08:47:26

Asset Size Chunks Chunk Names

entry2.js 962 bytes 0 [emitted] entry2

entry.js 6.75 KiB 1 [emitted] entry

index.html 427 bytes [emitted]

[0] ./src/entry2.js 33 bytes {0} [built]

[4] ./node_modules/css-loader!./src/css/index.css 227 bytes {1} [built]

[5] ./src/css/index.css 1.06 KiB {1} [built]

[6] ./src/entry.js 94 bytes {1} [built]

+ 3 hidden modules

WARNING in configuration

The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.

You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/

Child html-webpack-plugin for "index.html": 1 asset

[0] (webpack)/buildin/module.js 497 bytes {0} [built]

[1] (webpack)/buildin/global.js 489 bytes {0} [built]

[3] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 511 bytes {0} [built]

+ 1 hidden module

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值