|
@@ -5,6 +5,7 @@ const GitRevisionPlugin = require('git-revision-webpack-plugin')
|
|
const GitRevision = new GitRevisionPlugin()
|
|
const GitRevision = new GitRevisionPlugin()
|
|
const buildDate = JSON.stringify(new Date().toLocaleString())
|
|
const buildDate = JSON.stringify(new Date().toLocaleString())
|
|
const createThemeColorReplacerPlugin = require('./config/plugin.config')
|
|
const createThemeColorReplacerPlugin = require('./config/plugin.config')
|
|
|
|
+const Timestamp = new Date().getTime();
|
|
|
|
|
|
function resolve(dir) {
|
|
function resolve(dir) {
|
|
return path.join(__dirname, dir)
|
|
return path.join(__dirname, dir)
|
|
@@ -64,6 +65,9 @@ const vueConfig = {
|
|
|
|
|
|
chainWebpack: (config) => {
|
|
chainWebpack: (config) => {
|
|
config.resolve.alias.set('@$', resolve('src'))
|
|
config.resolve.alias.set('@$', resolve('src'))
|
|
|
|
+
|
|
|
|
+ config.output.filename(`static/js/[name].[hash].${Timestamp}.js`).end();
|
|
|
|
+ config.output.chunkFilename('static/js/[name].[hash].' + Timestamp + '.js').end()
|
|
|
|
|
|
// fixed svg-loader by https://github.com/damianstasik/vue-svg-loader/issues/185#issuecomment-1126721069
|
|
// fixed svg-loader by https://github.com/damianstasik/vue-svg-loader/issues/185#issuecomment-1126721069
|
|
const svgRule = config.module.rule('svg')
|
|
const svgRule = config.module.rule('svg')
|