Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geovanisouza92/serverless-preval
How to apply babel-plugin-preval on a serverless project that uses webpack for bundling
https://github.com/geovanisouza92/serverless-preval
Last synced: 15 days ago
JSON representation
How to apply babel-plugin-preval on a serverless project that uses webpack for bundling
- Host: GitHub
- URL: https://github.com/geovanisouza92/serverless-preval
- Owner: geovanisouza92
- Created: 2017-07-17T16:56:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T20:59:18.000Z (over 7 years ago)
- Last Synced: 2023-03-22T20:53:42.961Z (almost 2 years ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-preval
A simple example of how to apply [`babel-plugin-preval`](https://github.com/kentcdodds/babel-plugin-preval) to run JS snippets on build time. Making code simpler by removing unrelated (non business-related) code, with flexible and explicit manipulations. It's just JS there, you know?!
## About this example
It's a [serverless](https://serverless.com) project, using webpack to reduce bundle size.
The snippet read some (possible sensible) content from a file (`message.txt`), that will be placed inside the code. It uses `babel-node` for local development and `webpack` for production bundles.
## Contribution
Please, feel free to open issues with questions and suggestions.