vue项目打包 首页空白页面

360截图20201214103411492.png

最新vue新建项目后,发现没有build文件夹,打包后首页空白,不能找到build下index.js文件进行配置。

解决办法是在项目根目录新建vue.config.js

module.exports = {
    lintOnSave: true,

    publicPath: './',
    outputDir: 'dist',
    assetsDir: 'static'
}

你可能感兴趣的:(vue项目打包 首页空白页面)