You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2020. It is now read-only.
Short description of the problem:
It's possible to pass only sync function for custom webpack configuration (https://github.com/ionic-team/ionic-app-scripts/blob/master/src/util/config.ts#L410)
What behavior are you expecting?
It would be useful to be able to provide async function for custom webpack configuration.
Steps to reproduce:
config.ionic_webpack
ionic serve
Ionic app scripts doesn't wait for async function to finish and it looks like it fallbacks to default webpack configuration.
Which @ionic/app-scripts version are you using?
3.1.0
Other information:
Webpack@^2.0.0 allows to provide configuration as async function: webpack/webpack#2697 (comment)
Use case:
I want to introspect my server's graphql schema and pass results into application via
webpack.DefinePlugin
. This is needed for Apollo to properly match types (more details - https://www.apollographql.com/docs/react/recipes/fragment-matching.html).As a workaround it's possible to write this information to file but I don't want to manage temporary files.
The text was updated successfully, but these errors were encountered: