vue项目打包强制刷新

const timeString = new Date().getTime()
  configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    name: name,
    resolve: {
      alias: {
        '@': resolve('src')
      }
    },
    output: {
      filename: `[name].${timeString}.js`,
      chunkFilename: `[name].${timeString}.js`
    }
  },```

你可能感兴趣的:(vue.js,javascript,前端)