1.通过vue-cli3.0命令创建一个项目;项目目录如下
添加vue.config.js配置文件;代码如下;
module.exports = {
publicPath: "/",
outputDir: "dist",
assetsDir: "assets",
indexPath: "index.html",
filenameHashing: true,
pages: undefined,
lintOnSave: true,
runtimeCompiler: false,
transpileDependencies: [],
productionSourceMap: false,
crossorigin: undefined,
integrity: false,
devServer: {
index: 'main.html',
contentBase: __dirname,
open: process.platform === 'darwin',
},
}
启动项目后
项目可以正常打开运行;但是出现的3个错误如何解决?
- webpack output is served from /
- Content not from webpack is served from E:projectvuex_demo
- 404s will fallback to /index.html
我尝试过改变vue.config.js配置;但是并没有解决,请问一下这个需要怎么配置?