1.0.0 • Published 2 years ago
environment-config-synchroize-plugin v1.0.0
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 Name | Description | Type | Remark |
---|---|---|---|
path | Choose the config path | String | - |
env | Support environment list | Array\<String> | - |
include | RegExp of file | RegExp | - |
1.0.0
2 years ago