2.5.26 • Published 21 days ago

@dumlj/compare-envs-webpack-plugin v2.5.26

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

License: MIT  Github Repo  NPM Version  See Docs  codecov  DeepSource 

Compare Envs Webpack Plugin

Check whether the contents of dotenv files are consistent.

INSTALL

# use npm
$ npm install --dev @dumlj/compare-envs-webpack-plugin
# use yarn
$ yarn add --dev @dumlj/compare-envs-webpack-plugin
# use pnpm
$ pnpm add @dumlj/compare-envs-webpack-plugin -D

USAGE

import { CompareEnvsWebpackPlugin } from '@dumlj/compare-envs-webpack-plugin'

export default {
  // ...
  plugins: [
    new CompareEnvsWebpackPlugin({
      compare: ['dotenv/*.env'],
    }),
  ],
}

LIVE DEMO

Please pay attention to the console error message.

INTERNAL DEPENDENCIES