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

Offline/Development server #8

Closed
justingreenberg opened this issue Jul 1, 2016 · 1 comment
Closed

Offline/Development server #8

justingreenberg opened this issue Jul 1, 2016 · 1 comment

Comments

@justingreenberg
Copy link

Have you guys considered adding webpack-dev-server?

The de-facto solutions for offline lambda/API gateway simulation seem to be:

serverless-offline

unfortunately this does not support custom runtimes other than babel and uses hapi server... runs browserify build on each request. there may be an opportunity to add webpack runtime support and use this package for offline support, but that would mean running compiler on each request as opposed to leveraging webpack's internal server

serverless-serve

this uses express under the hood, looks like a good platform for adding webpack-dev-middleware and maybe even webpack-hot-middleware for hot module replacement :) this seems like the ideal outcome

In my mind webpack is the ideal solution for managing serverless projects.... you guys are def on the right track. Wishlist:

  • development server with entries for each handler, hot module replacement
  • tree shaking and native es module support without babel (webpack v2)
  • common code chunking/merging, etc
  • resolver aliasing for shared libs

Let me know what you guys think! Thanks again for the great work

@thenikso
Copy link
Member

interesting ideas. at this point it would make sense for me to start working on these in the new https://github.com/elastic-coders/serverless-webpack for Serverless 1.0.

I think that webpack 2 support will totally be a thing when it comes out of beta. the dev-server to serve simil api gateway requests if intriguing.

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