Comments (3)
嗯。我基于你的升级到了babel7,使用的是corejs 代替 babel-polyfill,一些webpack新的写法也整理了一下。拜读了你的vue-cli的新工程,总觉得配置收到vue.config.js里面太不自由了。很多想自定义的部分不好写。
from vue-boilerplate-template.
@jessjava 的确,全量引入 babel-polyfill
,确实不是一个明智的选择;而且自从 Babel 7.4.0
,babel-polyfill已不被推荐,所以后面有必要升级下 babel 且对这块整体做一个优化。 不过在 .babelrc 中配置了 transform-runtime,babel-polyfill
也是有引入的价值(根据使用情况),它能够使得新的 API 也可以转换。下面是构建出来的尺寸占比说明图:
from vue-boilerplate-template.
@jessjava 嗯,升级至 babel7
蛮好的。对于 vue-cli3 这种零配置,对于在 vue.config.js 中配置,略有同感:主要是针对在 chainWebpack 中做一些 loader 的部分,后面没过折腾,也未找寻到更好的办法。
from vue-boilerplate-template.
Related Issues (15)
- I build it HOT 3
- 提升本地开发体验
- 执行代码分析的时候报错 HOT 1
- 优化模块化引入 Lodash
- npm run jarvis 不能正常启动服务 HOT 1
- 讲elementUi替换成vux之后项目编译不通过 HOT 1
- debugger 无法准确定位 HOT 1
- Change index.ejs to index.html HOT 1
- Failed to compile with 24 errors error in ./src/assets/scss/style.scss HOT 1
- /src/views/demo/List.vue 9:2-221 报错 HOT 2
- Dll,DllReferencePlugin和CommonsChunkPlugin同时使用问题 HOT 3
- Upgrade from webpack3 to webpack4
- Optimizate webpack to reduce the package size
- Import Progressive Web Appa Completly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-boilerplate-template.