forked from chenyexing/Resume-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.config.js
69 lines (65 loc) · 1.93 KB
/
.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* Author: yhtml5
* Description: The configuration file for the yhtml5-scripts should not be packaged into the app
* Notice: when this file changes, you should rerunning scripts
*/
const packageJson = require('./package.json')
const { getVersion } = require('yhtml5-dev-utils')
const outputPath = `dist/${getVersion(packageJson.version)}`
const envVar = {
base: {
APP_TITLE: 'MPA'
},
development: {
customNodeEnv: 'development',
fileBaseUrl: '../../file',
shareApiBaeUrl: 'http://api.l.whereask.com',
gatewayApiBase: '//gateway.2dfire-daily.com',
gatewayApiEnv: '13cccf8b7b58467da82163d3cf540ef7'
},
production: {
customNodeEnv: 'production',
fileBaseUrl: '../../file',
shareApiBaeUrl: 'http://api.l.whereask.com',
gatewayApiBase: '//gateway.2dfire-daily.com',
gatewayApiEnv: '13cccf8b7b58467da82163d3cf540ef7'
}
};
const config = {
devHost: '0.0.0.0',
devPort: 9991,
isAnalyze: true,
analyzerPort: 9992,
envVar: envVar,
outputPath: outputPath,
// host: './',
// entry: 'src/index.js',
type: 'MPA',
pages: [{
key: 'index',
title: '前端开发丨张大漾',
entry: 'src/pages/yhtml5/index.js',
template: 'src/pages/yhtml5/template.js',
inlineSource: '.(js|css)$'
}, {
key: 'luyan',
title: '网页设计丨卢燕',
entry: 'src/pages/luyan/index.js',
template: 'src/pages/luyan/template.js',
inlineSource: '.(js|css)$'
}, {
key: 'report',
title: 'H5内嵌小程序调研报告',
entry: 'src/pages/h5MinProgramReport/index.js',
template: 'src/pages/h5MinProgramReport/template.js',
inlineSource: '.(js|css)$'
}],
// distributePort: 9993,
test: {
// testMatch: ['demo/__test__/**/*.js?(x)'],
// transformIgnorePatterns: ["node_modules/(?!(yhtml5-test|react-redux|react-native-button)/)"],
// moduleNameMapper: webpackConfigAlias,
// collectCoverageFrom: ['src/**/*.{js,jsx}'],
}
}
module.exports = config