// vue.config.js module.exports = { // 部署应用包时的基本 URL publicPath: './', // 当运行 vue-cli-service build 时生成的生产环境构建文件的目录 outputDir: 'dist', // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录 assetsDir: 'static', // 指定生成的 index.html 的输出路径 (相对于 outputDir)。也可以是一个绝对路径 indexPath: 'index.html', // 默认情况下,生成的静态资源在它们的文件名中包含了 hash 以便更好的控制缓存。然而,这也要求 index 的 HTML 是被 Vue CLI 自动生成的。如果你无法使用 Vue CLI 生成的 index HTML,你可以通过将这个选项设为 false 来关闭文件名哈希。 // filenameHashing: true, // 在 multi-page 模式下构建应用。每个“page”应该有一个对应的 JavaScript 入口文件。其值应该是一个对象,对象的 key 是入口的名字,value 是:一个指定了 entry, template, filename, title 和 chunks 的对象 (除了 entry 之外都是可选的);或一个指定其 entry 的字符串。 // pages: { // index: { // // page 的入口 // entry: 'src/index/main.js', // // 模板来源 // template: 'public/index.html', // // 在 dist/index.html 的输出 // filename: 'index.html', // // 当使用 title 选项时, // // template 中的 title 标签需要是