parcel
一个快速,零配置的 Web 应用程序打包工具,这里我介绍下如何和vue
结合进行开发。具体代码:https://github.com/zlxbuzz/parcel-demo
- clone:
git clone https://github.com/zlxbuzz/parcel-demo.git
- Install with yarn:
cd parcel-demo
yarn
- dev or build:
yarn dev
yarn build
parcel+vue demo
parcel
一个快速,零配置的 Web 应用程序打包工具,这里我介绍下如何和vue
结合进行开发。具体代码:https://github.com/zlxbuzz/parcel-demo
git clone https://github.com/zlxbuzz/parcel-demo.git
cd parcel-demo
yarn
yarn dev
yarn build
你好 还有个问题,就是在parcel index.html之后,同目录下 我想编辑demo.html 就无法操作了,也不会试试刷新,parcel entry.js 服务器也没有启动成功。..我不可能完成了index.html 再去parcel demo.html。。
你好 问个问题 如何使用parcel 将 /js /css /images 输出/dist对应的 /dist/js /dist/css /dist/images
这种
期待您的回答,非常感谢
clone 下来 直接 run dev ,不知道是不是版本又问题
× 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 | }
报这个错
修改.vue文件没有热更新
parcel是不是没有考虑到这点 并且模板也不支持 引用静态资源(图片)
{
"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"]
}
修改后,报错成功解决。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.