Blame view

vue.config.js 319 Bytes
9b0c2bed   刘淇   去缓存
1
2
3
4
5
6
7
8
  //vue.config.js
  configureWebpack: config => {
    const timeStamp = new Date().getTime();
    if (process.env.NODE_ENV === 'production') {
      config.output.filename = `[name].${process.env.VUE_APP_VERSION}.${timeStamp}.js`;
      config.output.chunkFilename = `[name].${process.env.VUE_APP_VERSION}.${timeStamp}.js`;
    }
  },