@boldr/tools0.1.0-beta.6 • Public • Published
Contains Webpack configuration, and development server.
@boldr/cli as dev-dependencies.
Add the following to your
Ensure your project root contains the directory
.boldr if not, create it
mkdir .boldr. Create another folder called config inside
.boldr along with a file called
mkdir config && touch config/default.js
Copy the configuration at the bottom of this README into
If you are not using Boldr, you may forgo putting your config directory inside
CFG_DIR=some/path in your
.env file or as an environment variable from your terminal. The directory is resolved based off of the root of your project.
@boldr/tools will throw an error if
process.env.API_PREFIX are not set in a
.env file (recommended) or added to your runtime command.
The following are inlined at build time via Webpack:
There is a section of the
default.js where dependencies are added to the development DLLs. Adding files here allows Webpack to place them into the DLLs for development. If you don't care about dev build times, this vendor section isnt that important.
The most important vendor file is located in
src/vendor.js. Simply add a dependency to the file by importing it,
import 'react';. Whatever is listed in the file is added to a separate chunk for improved caching.
Feel free to include something like dotenv in this file and set portions of the config based off of your