How to disable connect-assets file name digest

173 Views Asked by At

Does anyone know a way to disable the digest/hash of connect-assets/mincer? I know it's bla bla important in their opinion but it's not as useful when developing

1

There are 1 best solutions below

0
kgpdeveloper On BEST ANSWER

The digest or fingerprinting can be disabled this way:

app.use(assets({
  paths: [
    'assets/css',
    'assets/fonts',
    'assets/js',
    'assets/images',
    'bower_components'
  ],
  fingerprinting: false
}));

Now when you deploy your app, you will see the assets have no digest/hash appended to the names.