@rei/front-end-build-configs
v1.3.0
Published
Build configs for REI apps, libraries, and components
Downloads
25
Keywords
Readme
REI Build Config Files
This repository contains build configurations for:
- REI micro-site front-end application bundles.
- Libraries (future)
- Components (future)
Installation
npm install @rei/front-end-build-configs
Building
Applications
If you are using FEBS, you do not need to install as this is already
a dependency of FEBS
.
Otherwise, build your application with webpack --config <path to config> --env <env>
.
Libraries
Stay tuned!
Components
Stay tuned!
Overriding configurations
If you are using FEBS
, see its documentation for overriding the base configs.
If you are using webpack
directly, start with these configurations and override them locally in a separate overrides file that merges them, i.e.
// Local webpack.config.prod.js example
const { baseConf } = require('@rei/front-end-build-configs').profiles.application;
const merge = require('webpack-merge');
return merge(baseConf('prod'), {
/* overrides *.
});
Benefits in doing this:
- You will receive upstream updates as the base configs are updated.
- Will help with debugging your build.
- Will reduce proliferation of disparate build configurations that need to be maintained.
Submit a PR to update the base configs
If you have an override or update that you think would benefit everyone, please create PR to get this pulled into the base config!
Additionally, less and less overriding will be required in new projects.
Future
- Library and component build configs ("Technology profiles").