前端打包出来htmlWebpackPlugin.options.title
时间: 2023-12-08 13:45:28 浏览: 80
前端开源库-html-webpack-template
根据提供的引用内容,前端打包出来的`htmlWebpackPlugin.options.title`是在`vue.config.js`中配置的。具体来说,可以在`configureWebpack`中的`config.plugins.push`中添加`htmlWebpackPlugin`插件,并在插件的配置项中设置`title`属性。以下是一个示例配置:
```javascript
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
configureWebpack: (config) => {
config.plugins.push(
new HtmlWebpackPlugin({
title: 'Your Title Here',
})
);
},
};
```
在这个示例中,`htmlWebpackPlugin.options.title`将会被设置为`'Your Title Here'`。
#### 引用[.reference_title]
- *1* *2* [vue项目的webpack打包优化](https://blog.csdn.net/qq_33235582/article/details/121036674)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [cdn引入第三方插件,解决发布新包强制刷新(缓存)](https://blog.csdn.net/meng_xiaoxiao/article/details/125124333)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文