Skip to content

Commit

Permalink
single child should only load when dev is the command running (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccpricenytimes authored and delambo committed Sep 5, 2016
1 parent d2e2ad8 commit bb729c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/actions/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ const express = require('express');
const shell = require('shelljs');
const devMiddleware = require('webpack-dev-middleware');
const hotMiddleware = require('webpack-hot-middleware');
const SingleChild = require('single-child');
const logger = require('./../logger');
const ifPortIsFreeDo = require('../../utils/ifPortIsFreeDo');
const buildConfigs = require('../../utils/buildConfigs');
const webpackCompiler = require('../../utils/webpackCompiler');
const { buildPath, serverSrcPath } = require('../../utils/paths')();

module.exports = () => {
// Only load single child when dev is running
// This is temporary and will be replaced with nodemon
const SingleChild = require('single-child');

logger.start('Starting development build...');

// Clean the build directory.
Expand Down

0 comments on commit bb729c7

Please sign in to comment.