Open hysryt opened 6 years ago
$ yarn add -D pug github:pugjs/pug-cli#master
pug-cli
は npm にもあるが、最新版ではないので Github から取得する。
npm scripts
でコンパイル
{
"scripts": {
"build": "pug src/pug/ --out dist/ --pretty",
"watch": "pug src/pug/ --out dist/ --pretty --watch"
},
"devDependencies": {
"pug": "^2.0.3",
"pug-cli": "github:pugjs/pug-cli#master"
}
}
$ yarn run build
または
$ yarn run watch
https://pugjs.org/