diff --git a/frontend/webpack.common.cjs b/frontend/webpack.common.cjs index 93c569ec4..b17ea024a 100644 --- a/frontend/webpack.common.cjs +++ b/frontend/webpack.common.cjs @@ -75,7 +75,7 @@ const css_rule = function(env) { const font_rule = function(env) { const fontloader_opts = { - name: '[name].[ext]?[fullhash]', + name: '[name].[ext]?[contenthash]', outputPath: 'fonts/', publicPath: '/_static/fonts/' }; @@ -107,7 +107,7 @@ module.exports = function(env) { return { entry: './src/index.ts', output: { - filename: '[name].[fullhash].js', + filename: '[name].[contenthash].js', path: path.resolve(__dirname, 'dist', 'html', '_static') }, resolve: { @@ -120,6 +120,13 @@ module.exports = function(env) { } }, + cache: { + type: 'filesystem', + buildDependencies: { + config: [__filename], + }, + }, + module: { rules: [ ts_rule(env), @@ -135,7 +142,7 @@ module.exports = function(env) { plugins: [ new CleanWebpackPlugin(), new MiniCssExtractPlugin({ - filename: '[name].[fullhash].css', + filename: '[name].[contenthash].css', }), new Chunks2JsonPlugin(), new ESLintPlugin(myEslintOptions),