Skip to content

Commit

Permalink
Revert "feat: add hash to webpack built to uncache CDN"
Browse files Browse the repository at this point in the history
This reverts commit cd789c2.
  • Loading branch information
johanseto committed Jun 27, 2023
1 parent cd789c2 commit d3cfac0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config.entry = {
// Override output configuration in order to get a unique folder per entry.
config.output = {
path: path.resolve('./eox_nelp/static/'),
filename: '[name]/js/[name].[chunkhash].js',
filename: '[name]/js/[name].js',
chunkFilename: '[name]/js/[name].js',
}

Expand All @@ -24,7 +24,7 @@ config.optimization = {

config.plugins.splice(1, 3,
new MiniCssExtractPlugin({ // Override MiniCssExtractPlugin in order to change the file name
filename: '[name]/css/[name].[chunkhash].css',
filename: '[name]/css/[name].css',
}),
new Dotenv({ // Override the Dotenv plugin in order to use env.frontend instead of .env
path: path.resolve(process.cwd(), '.env.frontend'),
Expand Down

0 comments on commit d3cfac0

Please sign in to comment.