我想重命名 npm run build
生成的 index.html
。我在 webpack 配置中找不到任何东西。
我还创建了一个 vue.config.js
,描述如下:https://github.com/vuejs/vue-cli/tree/dev/docs/config
module.exports = {
pages: {
index: {
filename: 'dapp.html',
}
}
};
但是输出文件还是index.html
最佳答案
你可以直接使用
module.exports = {
indexPath: 'index_bundled.html'
}
作为vue cli的默认选项来改变文件
关于webpack - 如何在 vue.js 构建中重命名 index.html?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51890879/