Giter Site home page Giter Site logo

webpack 压缩打包时卡死求解 about g2 HOT 5 CLOSED

antvis avatar antvis commented on August 28, 2024
webpack 压缩打包时卡死求解

from g2.

Comments (5)

285858315 avatar 285858315 commented on August 28, 2024

顺便请教下,webpack 在压缩时可以指定部分不压缩么?这样应该也能解决这个问题。

from g2.

dxq613 avatar dxq613 commented on August 28, 2024

不太了解webpack的打包,@jaredleechn 帮忙回答一下

from g2.

jaredleechn avatar jaredleechn commented on August 28, 2024
  • 本地试了下,g2 的压缩版本作为依赖打包没有问题,压缩确实会占用较久时间,猜测你不是卡死而是过慢
  • 可以用 external 把 g2 挂在全局上
  • 可以配置 uglifyjsplugin
  • 可以配置 noParse

如果觉得自己写 webpackConfig 太麻烦可以使用 atool-build

from g2.

285858315 avatar 285858315 commented on August 28, 2024

确实是慢,中午吃完饭回来发现居然打包完成了,平时也不会等这么久。

from g2.

285858315 avatar 285858315 commented on August 28, 2024

多谢指点。

from g2.

Related Issues (20)

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.