Giter Site home page Giter Site logo

parcel-demo's Introduction

parcel 1.9.4 已经内置vue的支持,并且会自动安装项目依赖

parcel一个快速,零配置的 Web 应用程序打包工具,这里我介绍下如何和vue结合进行开发。具体代码:https://github.com/zlxbuzz/parcel-demo

Getting started

  1. clone:
git clone https://github.com/zlxbuzz/parcel-demo.git
  1. Install with yarn:
cd parcel-demo
yarn
  1. dev or build:
yarn dev
yarn build

parcel-demo's People

Contributors

zlxbuzz avatar

Stargazers

ZG0nn71 avatar  avatar jason avatar geekftz avatar wopelo avatar kevin avatar Liu Jia avatar qwei-telenav avatar Yoyo avatar longfei avatar Jason Bai avatar wangym avatar 陈材华 avatar LennyHu avatar  avatar  avatar huoxiangdong avatar Edward avatar Zee Kim avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

parcel-demo's Issues

你好 还有个问题,就是在parcel index.html之后.....

你好 还有个问题,就是在parcel index.html之后,同目录下 我想编辑demo.html 就无法操作了,也不会试试刷新,parcel entry.js 服务器也没有启动成功。..我不可能完成了index.html 再去parcel demo.html。。

大神有没有遇到过我这种情况,求解

× Cannot read property 'add' of undefined
at JSPackager.addAsset (D:\parcel\node_modules\parcel-bundler\src\packagers\JSPackager.js:55:32)
at Bundle._addDeps (D:\parcel\node_modules\parcel-bundler\src\Bundle.js:208:20)
at

跑不起来

Server running at http://localhost:1234
× C:\Users\shiwei.peng\Desktop\Temporary Files\parcel-demo\src\app.vue:34:25: Cannot resolve dependency 'vue'
32 | this.$router.push('/index')
33 | }else if(select === 'detail'){

34 | this.$router.push('/detail')
| ^
35 | }
36 | }
37 | }
报这个错

.babelrc 书写问题

{
  "presets": [
    ["env"]
  ]
}

您好,项目中 .babelrc 文件 presets 书写如上,但是我运行时会发生如下报错。

Server running at http://localhost:1234
× C:\Users\YunYou\Documents\GitHub\xxx\src\index.js: Cannot read property 'targets' of undefined
at loadBabelrc (C:\Users\YunYou\Documents\GitHub\xxx\node_modules\parcel-bundler\src\utils\getTargetEngines.js:113:23)
at <anonymous>


参见 babel 中文网 后,书写形式如下。

{
  "presets": ["env"]
}

修改后,报错成功解决。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.