Search code examples
node.jsconnect-assetsmincer

How to disable connect-assets file name digest


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


Solution

  • 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.