Giter Site home page Giter Site logo

Comments (5)

joshwiens avatar joshwiens commented on July 16, 2024

@anlexN - I am splitting out the different compression libs into separate plugins.

gzip is the most commonly used, the faster of the two but doesn't compress quite as much ( ~5% dependent on what you are compressing ).

Zopfli is pretty much the exact opposite but does come with a few system level requirements that gzip does not ( python for one ).

The change has little to do with what is better. Currently compression-webpack-plugin has a loose dependency on Zopfli which can cause dependency issues in continuous integration workflows.

For the next major release of compression-webpack-plugin the zopfli option and it's loose dependency will be dropped and be published in conjunction with the initial release of zopfli-webpack-plugin.

from compression-webpack-plugin.

anlexN avatar anlexN commented on July 16, 2024

these plugn will be changed to loader? when is the next major release? will you drop zopfli-webpack-plugin?

from compression-webpack-plugin.

joshwiens avatar joshwiens commented on July 16, 2024

zopfli-webpack-plugin hasn't been published yet. That needs to go out first, then a 1.0.0-beta version of compression-webpack-plugin needs to be published which includes the webpack-defaults updates and drops the zopfli option.

from compression-webpack-plugin.

anlexN avatar anlexN commented on July 16, 2024

@d3viantone, you are good man.
from webpack/hot-node-example repository:
i have a problem when i target: 'node" in webpack , want to use in the browser. i also use node-libs-browser , but see below!
require warning
require

from compression-webpack-plugin.

michael-ciniawsky avatar michael-ciniawsky commented on July 16, 2024

Closing as the initial question was answered. You won't need to compress (gzip) your files when running with node as the target as compression is only useful to minimize file size for sending data over the network

from compression-webpack-plugin.

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.