Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace clientCompiler before serverCompiler #569

Merged
merged 1 commit into from
Apr 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/razzle/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ function main() {
);
}

// Compile our assets with webpack
const clientCompiler = compile(clientConfig);

const serverCompiler = compile(serverConfig);

// Start our server webpack instance in watch mode.
Expand All @@ -73,9 +76,6 @@ function main() {
stats => {}
);

// Compile our assets with webpack
const clientCompiler = compile(clientConfig);

// Create a new instance of Webpack-dev-server for our client assets.
// This will actually run on a different port than the users app.
const clientDevServer = new devServer(clientCompiler, clientConfig.devServer);
Expand Down