How to configure the config information in different environments such as the BASE_API of the project generated by ivew-cli?

iview-cli generated project,
under the src/config folder is like this:

$ tree .
.
 config.js
 env.js

config.js content:

import Env from "./env";

let config = {
  env: Env
};
export default config;

evn.js content:

export default "development";

this is not consistent with the config folder generated by the classic webpack build project.

excuse me, how should I set up here?

for example, I want to configure the publishing environment.

if it is a typical webpack scaffolding project, there are dev.env.js , prod.env.js . Could you tell me how to configure it here?

Mar.11,2021
Menu