1.0.0 • Published 2 years ago

environment-config-synchroize-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Install

npm i EnvironmentConfigSynchroizePlugin

Config

webpack.config.js

const EnvironmentConfigSynchronizePlugin = require("./EnvironmentConfigSynchronizePlugin");
module.exports = {
  plugins: [
    new EnvironmentConfigSynchronizePlugin({
      path: "src/config",
      env: ["DEV", "SIT"],
      include: /.js|json|ts/
    })
  ]
}

Parameters

Parameter NameDescriptionTypeRemark
pathChoose the config pathString-
envSupport environment listArray\<String>-
includeRegExp of fileRegExp-