1.0.0 • Published 4 years ago
environment-config-synchroize-plugin v1.0.0
Install
npm i EnvironmentConfigSynchroizePluginConfig
webpack.config.js
const EnvironmentConfigSynchronizePlugin = require("./EnvironmentConfigSynchronizePlugin");
module.exports = {
plugins: [
new EnvironmentConfigSynchronizePlugin({
path: "src/config",
env: ["DEV", "SIT"],
include: /.js|json|ts/
})
]
}Parameters
| Parameter Name | Description | Type | Remark |
|---|---|---|---|
| path | Choose the config path | String | - |
| env | Support environment list | Array\<String> | - |
| include | RegExp of file | RegExp | - |
1.0.0
4 years ago