Giter VIP home page Giter VIP logo

Comments (3)

jessjava avatar jessjava commented on May 18, 2024 1

嗯。我基于你的升级到了babel7,使用的是corejs 代替 babel-polyfill,一些webpack新的写法也整理了一下。拜读了你的vue-cli的新工程,总觉得配置收到vue.config.js里面太不自由了。很多想自定义的部分不好写。

from vue-boilerplate-template.

nicejade avatar nicejade commented on May 18, 2024

@jessjava 的确,全量引入 babel-polyfill,确实不是一个明智的选择;而且自从 Babel 7.4.0babel-polyfill已不被推荐,所以后面有必要升级下 babel 且对这块整体做一个优化。 不过在 .babelrc 中配置了 transform-runtime,babel-polyfill 也是有引入的价值(根据使用情况),它能够使得新的 API 也可以转换。下面是构建出来的尺寸占比说明图:

vue-boilerplate-template

from vue-boilerplate-template.

nicejade avatar nicejade commented on May 18, 2024

@jessjava 嗯,升级至 babel7 蛮好的。对于 vue-cli3 这种零配置,对于在 vue.config.js 中配置,略有同感:主要是针对在 chainWebpack 中做一些 loader 的部分,后面没过折腾,也未找寻到更好的办法。

from vue-boilerplate-template.

Related Issues (15)

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.