Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure Lumie to work with Webpack/babel builds? #20

Open
chuck-qorum opened this issue Dec 18, 2019 · 1 comment
Open

How to configure Lumie to work with Webpack/babel builds? #20

chuck-qorum opened this issue Dec 18, 2019 · 1 comment

Comments

@chuck-qorum
Copy link

So I inherited a project that is using lumie but the webpack/babel production builds do not work. Ended up tracing down the error to a path resolution issue with Lumie when it tries to load the controller paths but I'm not sure how to handle this (part of the problem is definitely my very limited knowledge of webpack/bable configs).

Has anybody successfully configured webpack builds for a lumie/express app? Any examples or just general idea on how to configure this properly would be greatly appreciated (sorry I know this is pretty vague, really just looking for where to get started and I can do my own research from there).

Thanks for any help!

@Alex-Levacher
Copy link
Owner

Hi @chuck-qorum, did you manage to solve your problem? Lumie reads the routing files located in the folder specified in the lumie.load function. So if your babel configuration build your project in a single file, this is probably the problem, because Lumie will try to browse the "controller" folder
(for example) which no longer exists in your build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants