Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions frontend/webpack.common.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
};
Expand Down Expand Up @@ -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: {
Expand All @@ -120,6 +120,13 @@ module.exports = function(env) {
}
},

cache: {
type: 'filesystem',
buildDependencies: {
config: [__filename],
},
},

module: {
rules: [
ts_rule(env),
Expand All @@ -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),
Expand Down
Loading