diff --git a/frontend/vue.config.js b/frontend/vue.config.js index a7a3746a14..4e993325df 100644 --- a/frontend/vue.config.js +++ b/frontend/vue.config.js @@ -2,6 +2,8 @@ const path = require('path') const defaultSettings = require('./src/settings.js') +const pkg = require('./package.json') + const CopyWebpackPlugin = require('copy-webpack-plugin') // const CompressionPlugin = require('compression-webpack-plugin') const webpack = require('webpack') @@ -48,6 +50,11 @@ module.exports = { '@': resolve('src') } }, + output: { + filename: `js/[name].[contenthash:8].${pkg.version}.js`, + publicPath: '/', + chunkFilename: `js/[name].[contenthash:8].${pkg.version}.js` + }, plugins: [ new CopyWebpackPlugin([ {