diff --git a/lib/commands/init.js b/lib/commands/init.js index 051fe62..2bc0df8 100644 --- a/lib/commands/init.js +++ b/lib/commands/init.js @@ -67,11 +67,11 @@ async function createFile(path, local, rcMode, theme, plugins) { const vendor = exists(cwd('node_modules/docsify')) || pwd('../node_modules/docsify') - cp(resolve(vendor, 'dist/docsify.min.js'), target('vendor/docsify.js')) - cp(resolve(vendor, 'dist/themes/core.css'), target('vendor/themes/core.css')) + cp(resolve(vendor, 'dist/docsify.min.js'), target('vendor/docsify.min.js')) + cp(resolve(vendor, 'dist/themes/core.min.css'), target('vendor/themes/core.min.css')) cp( - resolve(vendor, `dist/themes/addons/${theme}.css`), - target(`vendor/themes/addons/${theme}.css`) + resolve(vendor, `dist/themes/addons/${theme}.min.css`), + target(`vendor/themes/addons/${theme}.min.css`) ) } diff --git a/lib/template/index.local.html b/lib/template/index.local.html index 65c5550..c82e26b 100644 --- a/lib/template/index.local.html +++ b/lib/template/index.local.html @@ -16,6 +16,6 @@ repo: '' } - +