- A module bundler, ESNext builder and development tool, using webpack, babel and nodemon
yarn add --dev flexbuilder
npm install --dev flexbuilder
Install all necessary peer dependencies. Except
react-dom, the rest should be installed as dev dependencies.
Add a build.js file at the root
process;;const builder = default;const argv = argv;;
Add these scripts to the
If you have symlinked modules in your project (only during development), add node's
--preserve-symlinks flag to the commands above.
package.json (for symlinked modules)
|root||Yes||Root of the project. Use
|dev||Yes||Should run in dev mode? It's best to use
|start||Yes if target is an app and server code needs to be run in dev mode||relative path to the distribution server file|
|library||Yes if target is a library||Name of the library|
|devServerPort||Yes if using webpack dev server||You must explicitly provide a port for webpack dev server|