1

Hi I have the following in my webpack prod config:

output: {
filename: '[name].[contenthash].js',
publicPath: '/container/latest/'
}

but the output does not include the content hash. My file is always named as main.js not main.[contenthash].js

I'm using webpack version 5.59.1.

I can't figure out the problem.

Abdur Rahman
  • 894
  • 1
  • 11
  • 27
Teddy McZieuwa
  • 347
  • 2
  • 4
  • 13

1 Answers1

0

I've seen the problem. I was running webpack.dev.js instead of webpack.prod.js.

Teddy McZieuwa
  • 347
  • 2
  • 4
  • 13