build-plugin-ice-config
v2.0.2
Published
Define application config in icejs
Downloads
878
Keywords
Readme
plugin-config
Define application config in icejs
Usage
Set runtime options to src/config.[t|j]s
:
const config = {
config: {
// only working in development environment
dev: {
},
// only working in production environment
prod: {
},
// default configuration working in production environment and development environment
default: {
appId: 'secret'
}
}
};
export default config;
Set mode
options to package.json
:
"scripts": {
"start": "icejs start --mode dev",
"build": "icejs build --mode prod"
},
Usage
import { config } from 'ice'
console.log(config)
License
MIT