npm install --global @vue/cli
一度ターミナルを再起動してから
バージョンの確認
vue -V
@vue/cli 4.5.11
vue create my-project-name
Typescript を利用するために Manually select features を選択します。
cd my-project-name
npm run serve
dist フォルダにビルド結果が出力されます
npm run build
vue 2 の場合は
vue.config.js
module.exports = {
publicPath: './'
}
vue 3 の場合は
vue.config.js
module.exports = {
baseUrl: './'
}