Expose Swagger ui dist from node_modules

I’m configing swagger-ui-dist(https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/installation.md) on my project and I think to use this const pathToSwaggerUi = require('swagger-ui-dist').absolutePath() to expose it as public static asset from node_modules. What do you think about this?