Commit 389fa3c5 authored by 神楽坂玲奈's avatar 神楽坂玲奈

env

parent 61521e23
This diff is collapsed.
let publicPath = 'https://cdn01.moecube.com/accounts/'
let publicPath = 'https://cdn01.moecube.com/accounts/';
const API_ROOT = {
test: 'http://192.168.1.9:3000',
dev: 'http://114.215.243.95:8082',
prod: 'https://api.moeube.com/accounts'
}
development: 'http://192.168.1.9:3000',
test: 'http://114.215.243.95:8082',
production: 'https://api.moeube.com/accounts'
};
let defineConf = {
apiRoot: API_ROOT[process.env["ENV"]],
}
apiRoot: API_ROOT[process.env['ENV']],
};
export default {
"entry": "src/index.js",
'entry': 'src/index.js',
publicPath,
define: {...defineConf},
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr",
"transform-runtime",
["import", { "libraryName": "antd", "style": "css" }]
define: { ...defineConf },
'env': {
'development': {
'extraBabelPlugins': [
'dva-hmr',
'transform-runtime',
['import', { 'libraryName': 'antd', 'style': 'css' }]
]
},
"production": {
"extraBabelPlugins": [
"transform-runtime",
["import", { "libraryName": "antd", "style": "css" }]
'production': {
'extraBabelPlugins': [
'transform-runtime',
['import', { 'libraryName': 'antd', 'style': 'css' }]
]
}
}
}
};
{
"private": true,
"scripts": {
"start": "cross-env ENV=test roadhog server",
"build:dev": "cross-env ENV=dev roadhog build",
"build": "cross-env ENV=prod roadhog build",
"start": "cross-env ENV=development roadhog server",
"build:test": "cross-env ENV=test roadhog build",
"build": "cross-env ENV=production roadhog build",
"lint": "eslint --ext .js src test",
"precommit": "npm run lint"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment