Skip to content

Commit

Permalink
feat: remove serverConfig from pack
Browse files Browse the repository at this point in the history
Just like build, pack also doesn't need any serverConfig.
  • Loading branch information
swashata committed Dec 30, 2018
1 parent e531e43 commit fc277e6
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions packages/scripts/src/bin/pack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import chalk from 'chalk';
import logSymbols from 'log-symbols';
import ora from 'ora';
import path from 'path';
import { getProjectAndServerConfig } from '../config/getProjectAndServerConfig';
import { getProjectConfig } from '../config/getProjectAndServerConfig';
import { Callbacks, Pack } from '../scripts/Pack';
import { ProgramOptions } from './index';
import {
Expand Down Expand Up @@ -37,22 +37,15 @@ export function pack(options: ProgramOptions | undefined): void {
)}`
);
try {
const {
projectConfig,
serverConfig,
projectConfigPath,
serverConfigPath,
} = getProjectAndServerConfig(cwd, options);
const { projectConfig, projectConfigPath } = getProjectConfig(
cwd,
options
);
console.log(
`${logSymbols.success} project config: ${chalk.cyan(
path.relative(cwd, projectConfigPath)
)}`
);
console.log(
`${logSymbols.success} server config: ${chalk.cyan(
path.relative(cwd, serverConfigPath)
)}`
);
// Start the webpack/browserSync server
spinner.start();
const packer = new Pack(
Expand Down

0 comments on commit fc277e6

Please sign in to comment.