@constgen/neutrino-env

1.9.2 • Public • Published

@constgen/neutrino-env

npm npm

Neutrino middleware that exposes an access to all environment variables (process.env) during the build time

Requirements

  • Node.js v10+
  • Neutrino v9
  • Webpack v4

Installation

@constgen/neutrino-env can be installed from NPM. You should install it to "dependencies" (--save) or "devDependncies" (--save-dev) depending on your goal.

npm install --save @constgen/neutrino-env

Usage

In preset

Require this package and plug it into Neutrino. The middleware has no options:

let env = require('@constgen/neutrino-env')

neutrino.use(env())

In neutrinorc

The middleware also may be used together with another presets in Neutrino rc-file, e.g.:

.neutrinorc.js

let env = require('@constgen/neutrino-env')

module.exports = {
   use: [
      env()
   ]
}

Package Sidebar

Install

npm i @constgen/neutrino-env

Weekly Downloads

1

Version

1.9.2

License

GPL-3.0

Unpacked Size

37.3 kB

Total Files

4

Last publish

Collaborators

  • constgen