How to use the nprogress._configure function in nprogress

To help you get started, we’ve selected a few nprogress examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lskjs / ux / src / utils / Progress.js View on Github external
NProgress.configure = (props = {}) => NProgress._configure({ // перенести куда нибудь
  minimum: 0.2,
  easing: 'ease',
  speed: 300,
  trickle: true,
  showSpinner: false,
  trickleRate: 0.1,
  trickleSpeed: 500,
  parent: '#progress',
  // parent: 'body',
  ...props,
});
NProgress._start = NProgress.start;