Skip to main content

VuePress 2 メモ

最初のディレクトリ作成

ディレクトリ作成後

bash
yarn init
yarn add -D vuepress@next

package.json に追加

json
{
"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
}
}

.gitignore に追加

bash
echo 'node_modules' >> .gitignore
echo '.temp' >> .gitignore
echo '.cache' >> .gitignore

ファイル作成+起動

bash
mkdir docs
echo '# Hello VuePress' > docs/README.md
yarn docs:dev