mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Merge pull request #6024 from CurtisHumphrey/patch-3
Update build-static.js
This commit is contained in:
commit
5a9f96e23b
@ -148,17 +148,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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user