Re: Contribute requirejs.config.paths to ModuleManager

2017-11-27 Thread Chris Poulsen
Hi, It has been a while since I last fought the module system, but in some cases I've used a request filter to map between module and asset paths (triggering on known module paths and then returning permanent redirects to the actual asset urls in the filter) - This was necessary in order to get st

RE: Contribute requirejs.config.paths to ModuleManager

2017-11-27 Thread Svein-Erik Løken
Got this error message (very informative): org.apache.tapestry5.ioc.util.UnknownValueException Unable to create a client URL for classpath resource META-INF/modules/react/react.min.js: The resource path was not within an aliased path. availableValues Aliased paths: • META-INF/assets • META-INF/a

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-27 Thread Thiago H. de Paula Figueiredo
On Sun, Nov 26, 2017 at 10:40 AM, Svein-Erik Løken wrote: > Source code: > > @Contribute(JavaScriptStackSource.class) > public static void addMyStack(MappedConfiguration JavaScriptStack> configuration) { > configuration.addInstance("react", ReactStack.class); > } > > @Contribute(JavaScriptSt