Comments (11)
The PR creates 2 issues:
- Even if node-zopfli is not used, end users need to install python and a C++ compiler which is really annoying especially on windows.
- Behind a corporate firewall and with github blocked, node-zopfli cannot be installed.
What's your opinion of creating a new webpack plugin that supports node-zopfli and remove it from this package ?
from compression-webpack-plugin.
i have a problem with node-zopfli on windows too, after downloading and installing gigs of visual studio/sdk and other things but still can't get it to work for days. in the end I just manually change the version of node-zopfli inside compression-webpack-plugin
's package.json into 2.0.0 and then it works fine.
from compression-webpack-plugin.
Or the node-zopfli version dependency needs to be better maintained. The compiled binaries that would allow usage without python/VC++ for node v4 are only available for node-zopfli 2.x as per here
from compression-webpack-plugin.
@sokra https://www.npmjs.org/package/node-zopfli
from compression-webpack-plugin.
PR? "optionalDependency"
as it's a native module.
from compression-webpack-plugin.
Yeap, I will try to make PR but only after 23 of Oct (sorry :) ).
Maybe we should use it by default? In one hand it is slow. But it is good practice.
from compression-webpack-plugin.
@ai still interested?
from compression-webpack-plugin.
Nope, I moved to Gulp.
from compression-webpack-plugin.
@DNx5 try to install VC++ and Python on Windows with https://www.npmjs.com/package/windows-build-tools (it takes about 5 minutes on my machine).
from compression-webpack-plugin.
Or add optional=false
in your .npmrc
to avoid installing unnecessary dependencies.
from compression-webpack-plugin.
@FredericHeem @DNx5 @generalov @ShaneCourtrille If one of you guys still have issues regarding this plugin and windows useage please open a new issue 😛
from compression-webpack-plugin.
Related Issues (20)
- tabPromise is not defined - compression-webpack-plugin
- Changes input filenames when used in conjuction with webpack-manifest-plugin HOT 2
- [types] Failed to import new types HOT 3
- [types] `@gfx/zopfli` can't be used with new types HOT 3
- Getting error TS1005: '?' expected HOT 2
- Always 404, I don't know why, HOT 2
- gzipped css not updated in html file HOT 19
- compress images not work HOT 2
- TypeError: Cannot read properties of undefined (reading 'tapPromise') HOT 1
- Allow usage of 6.x version without md4 HOT 4
- ERROR in Conflict: Multiple assets emit different content to the same filename css/.gz HOT 1
- Restoring failed for CompressionWebpackPlugin; HookWebpackError: this._obj.updateHash is not a function HOT 5
- Some of the files ignored during build compression HOT 10
- How to do this compression from express? HOT 1
- How to use deleteOriginalAssets is true ? HOT 2
- Compressed build now working on browser HOT 6
- Version 6 (for Webpack 4) does not work on Node 18+ HOT 10
- Let users exclude files or folder from deleting original assets. HOT 1
- Compression-webpack-plugin running before HtmlCriticalWebpackPlugin completes. HOT 2
- Ability to exclude files from deletion after zipping. HOT 1
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 compression-webpack-plugin.