Vue project packaging vue.config.js universal configuration

module.exports = {

  devServer: {

    port: 8080, // port number

    open: true

  },

  lintOnSave: false, // Whether eslint-loader checks when saving

  publicPath: "./",// basic path

  outputDir: "dist",// output file directory

  assetsDir: "static",//Set the directory where the static resources (js, css, img, fonts) generated by packaging are placed.

  indexPath: 'index.html'//Used to set the storage location of the index.html file generated by packaging

}

Guess you like

Origin blog.csdn.net/zsx0806/article/details/126250479