Handle twig extension #15
Unanswered
valeriosillari
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Do you mean template file extension or twig.js extension? If you mean twig.js extension, try to load this extension in webpack config, I think it should work fine if it's registered before webpack starts transpilling. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
For anyone else stumbling over discussions without solutions ;-) Do something like this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I hope this is not off-topic.
I've started using twigjs-loader and all seems fine.
I can call twig files via webpack.
But some twig files got an error.
These twig files are using a custom twig extension I've created.
Webpack and the loader seems not to know where this extension is (meaning path and how to treat it) and return an error.
Question:
Can this package handle custom twig extensions? Is something that this package should take care of?
Please any tips and support is very welcome
Best
Beta Was this translation helpful? Give feedback.
All reactions