-
Notifications
You must be signed in to change notification settings - Fork 13
Ignore loader chaining #2
Comments
yes this is indeed a quick and imperfect Twing loader implementation. Using the result of previous loaders is apparently more complicated than it seems because of the fact that Twig requires file names for many features. If you can think of a fix, feel free to submit a PR :) |
@ryuran could you please provide an example of webpack config that fails? I'd like to add it the the integration test suite of my loader - and hopefully next version of this one. It uses the source parameter to compile the template: https://github.com/ericmorand/twing-loader/blob/master/src/index.ts But I still need to test it with your config - or a relevant subset of it. |
@ryuran Could you give twing-loader@2 a try? |
As soon as i'm back from vacation |
ho damn. my vacation wasn't so long… |
Hello
https://github.com/nicolasRdr/twing-loader/blob/master/src/loader.js#L15
This line use
this.ressource
it’s the path of original file and not the result of previous loaders.We should une
sourceData
hereBut I don't know how use it with Twing API.
Maybe @ericmorand can help
The text was updated successfully, but these errors were encountered: