1 | const path = require('path')
|
2 | const serverConfig = require('./server.config')
|
3 |
|
4 | module.exports = {
|
5 | // 主服务启动端口,不同的环境不一样,不能在这里写死
|
6 | appPort: serverConfig.appPort,
|
7 | // webpack服务器配置
|
8 | webpackDevServerPort: serverConfig.webpackDevServerPort,
|
9 | // webpack的差异化配置
|
10 | webpack: {
|
11 | entry: {
|
12 | app: path.join(__dirname, 'client/index.js'),
|
13 | },
|
14 | },
|
15 | }
|