Skip to content

Commit fc277e6

Browse files
committed
feat: remove serverConfig from pack
Just like build, pack also doesn't need any serverConfig.
1 parent e531e43 commit fc277e6

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

packages/scripts/src/bin/pack.ts

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import chalk from 'chalk';
22
import logSymbols from 'log-symbols';
33
import ora from 'ora';
44
import path from 'path';
5-
import { getProjectAndServerConfig } from '../config/getProjectAndServerConfig';
5+
import { getProjectConfig } from '../config/getProjectAndServerConfig';
66
import { Callbacks, Pack } from '../scripts/Pack';
77
import { ProgramOptions } from './index';
88
import {
@@ -37,22 +37,15 @@ export function pack(options: ProgramOptions | undefined): void {
3737
)}`
3838
);
3939
try {
40-
const {
41-
projectConfig,
42-
serverConfig,
43-
projectConfigPath,
44-
serverConfigPath,
45-
} = getProjectAndServerConfig(cwd, options);
40+
const { projectConfig, projectConfigPath } = getProjectConfig(
41+
cwd,
42+
options
43+
);
4644
console.log(
4745
`${logSymbols.success} project config: ${chalk.cyan(
4846
path.relative(cwd, projectConfigPath)
4947
)}`
5048
);
51-
console.log(
52-
`${logSymbols.success} server config: ${chalk.cyan(
53-
path.relative(cwd, serverConfigPath)
54-
)}`
55-
);
5649
// Start the webpack/browserSync server
5750
spinner.start();
5851
const packer = new Pack(

0 commit comments

Comments
 (0)