扫码关注官方订阅号
ringa_lee
By default (if you don't specify any loader in any way) a fallback ejs loader kicks in.
如果没有置顶 loader,那么默认使用 ejs 作为模板引擎。
所以可以显示指定 html-loader
html-loader
{ module: { loaders: [ { test: /\.html$/, loader: 'html-loader' }, }, plugins: [ new HtmlWebpackPlugin({ template: 'src/index.html' }) ] }
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
如果没有置顶 loader,那么默认使用 ejs 作为模板引擎。
所以可以显示指定
html-loader