全新打包工具parcel零配置vue開發腳手架,parcelvue

來源:互聯網
上載者:User

全新打包工具parcel零配置vue開發腳手架,parcelvue

parcel-vue 一個基於Parcel打包工具的 VueJS急速開發腳手架解決方案,強烈建議使用node8.0以上

項目地址: https://github.com/w3c-king/parcel-vue

初始化項目

$ git clone https://github.com/w3c-king/parcel-vue.git

安裝依賴

$ cd parce-vue$ npm install

其中 parcel-bundler 是主要的工具,對於 vue 結尾的單檔案,需要單獨處理檔案類型, parcel-plugin-vue 這個外掛程式會通過 vueify 來產生對應的代碼, parcel 會自動載入 parcel-plugin 開頭的依賴。

運行開發環境,運行成功開啟瀏覽器http://localhost:1234即可查看項目

$ npm run dev

打包編譯

$ npm run build

開發

目錄結構

src├── router ├── index.js├── assets ├── logo.png├── components ├── Hello ├── index.js ├── index.js├── views ├── HelloWorld  ├── images   ├── logo.png  ├── HelloWorld.vue├── styles ├── common.css├── store ├── global  ├── global.js  ├── index.js ├── index.js├── app.vue├── index.js

只需要執行 npm run dev 和 npm run build 就可以進行開發和構建。

總結

以上所述是小編給大家介紹的全新打包工具parcel零配置vue開發腳手架,希望對大家有所協助,如果大家有任何疑問請給我留言,小編會及時回複大家的。在此也非常感謝大家對幫客之家網站的支援!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.