Skip to content

Commit

Permalink
Merge pull request #6024 from CurtisHumphrey/patch-3
Browse files Browse the repository at this point in the history
Update build-static.js
  • Loading branch information
shilman committed Mar 17, 2019
1 parent 0033e3a commit 897a868
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/core/src/server/build-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,14 @@ async function buildPreview(configType, outputDir, packageJson, options) {
}

function prepareFilesStructure(outputDir, defaultFavIcon) {
// clear the output dir
logger.info('clean outputDir..');
shelljs.rm('-rf', outputDir);

// create output directory if not exists
shelljs.mkdir('-p', outputDir);
shelljs.mkdir('-p', path.join(outputDir, 'sb_dll'));

// clear the static dir
shelljs.rm('-rf', path.join(outputDir, 'static'));
shelljs.cp(defaultFavIcon, outputDir);

logger.info('clean outputDir..');
shelljs.rm('-rf', path.join(outputDir, 'static'));

shelljs.cp(defaultFavIcon, outputDir);
}

Expand Down

0 comments on commit 897a868

Please sign in to comment.