JS Base Boilerplate
Scripts
devLaunches the app in watch mode with babel/webpack/nodemon for reloading on file changesbuildCompiles the app in production mode, output indistfolderstartRuns the compiled app
Features
webpackHouses thebuildanddevprocess workflows integrating babel, dotenv, nodemon etcbabelTranspiles js to the@babel/preset-envpresetdotenvAllows variable injection for sensitive datanodemonReload on file changes
Environmental Variables
All env variables are injected via a webpack plugin which is based on the current mode e.g. .env.production & .env.development