htmlWebpackPlugin.options.title code example
Example 1: htmlWebpackPlugin.options.title
module.exports = {
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title = "Popular films";
return args;
})
}
}
Example 2: vue htmlWebpackPlugin.options.title
module.exports = {
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title = '<Your new title>';
return args;
});
}
};
Example 3: change htmlwebpackplugin.options.title
module.exports = {
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title = "My Vue App";
return args;
})
}
}