Install the library with npm install @nily/env
or yarn add @nily/env
const { getEnvironment } = require('@nily/env')
const webpack = require('webpack')
new webpack.DefinePlugin(getEnvironment({
root: __dirname,
prefix: 'VUE_APP_'
}))
Tests are using jest, to run the tests use:
$ npm run test