LoginSignup
0
0

More than 3 years have passed since last update.

Vue CLIでPugを使いたい!

Last updated at Posted at 2020-11-07

Vue CLIでHTMLを書くとき、Pugを使いたいと思い調べました。

環境

macOS バージョン10.15.7
vue/cli バージョン4.5.8

やったこと

vue create ディレクトリ名
でプロジェクトを作成した後、

vue add pug

を実行。

あとはvueファイルの<template>タグにlang="pug"を追加すると、</template></template>の中でPugを使えます。

参考リンク

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0