geovanisouza92 / serverless-preval

How to apply babel-plugin-preval on a serverless project that uses webpack for bundling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serverless-preval

A simple example of how to apply 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 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.

About

How to apply babel-plugin-preval on a serverless project that uses webpack for bundling


Languages

Language:JavaScript 100.0%