diff --git a/.gitignore b/.gitignore index ceab00342..db71eaee0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ src/components/icon/icons docs/assets/data/custom.json dist/ -docs-dist/ +docs/dist/ loader/ www/ diff --git a/postbuild.js b/postbuild.js index 8fddb30e2..c72fcbd61 100644 --- a/postbuild.js +++ b/postbuild.js @@ -6,8 +6,8 @@ const del = require('del'); try { // Create the docs distribution console.log(chalk.cyan('Creating docs distribution 📚\n')); - await del('./docs-dist'); - await Promise.all([copy('./docs', './docs-dist'), copy('./dist', './docs-dist/dist')]); + await del('./docs/dist'); + await copy('./dist', './docs/dist'); } catch (err) { console.error(err); }