iT邦幫忙

0

vue3 項目打包?? npm run build

  • 分享至 

  • xImage

vue3 項目打包?? npm run build

執行index.html一片空白?

會建立dist資料夾
index.html檔案中,依說明改了相對路徑也沒用

<link rel="stylesheet" href="assets/index-1da8cd0c.css">

node.js版本
v18.15.0

"vue": "^3.2.45"
"vite": "^4.1.0"
npm init vue@latest

建立專案資料夾

npm init vue@latest
cd
npm install
npm run dev
npm run build

小哈片刻 iT邦研究生 5 級 ‧ 2023-03-12 20:40:54 檢舉
怎麼不用vite?
npm create vite@latest
ppp896 iT邦新手 4 級 ‧ 2023-03-12 22:30:50 檢舉
不會用,看影片教學,,成功一半,只好回到vue3官網說明....
ppp896 iT邦新手 4 級 ‧ 2023-03-12 23:12:53 檢舉
看過卡斯伯Vite,教學....,,研究中.
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答