@trinitymirrordigital/dragonfly-process-config
v2.1.0-alpha.0
Published
> TODO: description
Downloads
123
Maintainers
Keywords
Readme
@trinitymirrordigital/dragonfly-process-config
A package that processes config yaml file used in dragonfly projects, designed to work with @trinitymirrordigital/webpack-config
Install
yarn add @trinitymirrordigital/dragonfly-process-config
Usage as part of webpack.config.js
const getConfig = require('@trinitymirrordigital/dragonfly-process-config');
module.exports = (env, args) => {
// Gets yaml config
const { YAML_CONFIG } = process.env;
const filePath = resolve(YAML_CONFIG);
const config = getConfig(filePath, args);
...
}
Copyright (c) 2022 "Reach Shared Services Ltd"