parcel
打包工具
parcel
{
"name": "parcel-sandbox",
"version": "1.0.0",
"description": "Simple Parcel Sandbox",
"main": "index.html",
"scripts": {
"start": "parcel index.html --open",
"build": "parcel build index.html"
},
"dependencies": {},
"devDependencies": {
"parcel-bundler": "^1.6.1"
}
}
+// Run parcel index.html 或是npm star 就可以打開http://localhost:1234 看到網頁了
+ Run npm build 可以看到 產生出./dist資料夾啟動
改變預設生成資料夾
(補充) deploy/build issue
網站樣式與圖片都不見了
Last updated