0.1.0 • Published 7 months ago

@rambler-tech/razzle-environment v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Environment Plugin

Pass environment variables to app with dotenv and custom variables

Install

npm install -D @rambler-tech/razzle-environment

or

yarn add -D @rambler-tech/razzle-environment

Usage

Add the plugin to razzle.config.js

const EnvironmentPlugin = require('@rambler-tech/razzle-environment')

const VERSION = '...'

module.exports = {
  plugins: [
    EnvironmentPlugin({
      VERSION
    })
  ],
  modifyWebpackConfig({webpackConfig}) {
    // ...
    return webpackConfig
  }
}
0.1.0

7 months ago