willjs icon indicating copy to clipboard operation
willjs copied to clipboard

Change config after load defaultConfigs

Open dgmike opened this issue 9 years ago • 1 comments

Its not possible join configurations on will.js, so, its better have a way to do it.

Solving problem with above code. Its not the best way but solves for time.

will.use(["will.js"])(function(status) {
  will.configure(function(config) {
    config.addDomain("newlocation", "/assets/components", "js");
  });
});

dgmike avatar Apr 17 '15 11:04 dgmike

Hi Mike,

I made these changes on the commit 6f88b17c494068b01c443a1b45ff5f67e681f7de, adding a new method postConfigure. With this new method you can keep the default configuration and add some post-load configuration to be appended.

Please see the spec to check the behavior of this before I generate a new release.

kawamanza avatar May 03 '15 03:05 kawamanza