Comments (24)
Fixed in v0.3.1, this could be closed!
from compression-webpack-plugin.
from compression-webpack-plugin.
@Icehunter "^0.x.y" is special case... just as @cchamberlain said. when the major is "0" the caret makes minor locked.
from compression-webpack-plugin.
Can confirm that rolling back to 0.2 works normally with no other changes.
from compression-webpack-plugin.
Just saw this error as well. Confirmed rolling back to 0.2.0
works.
from compression-webpack-plugin.
👍
from compression-webpack-plugin.
rolling back to 0.2.0 works
from compression-webpack-plugin.
Also facing this issue.
from compression-webpack-plugin.
And I just happened to meet.
from compression-webpack-plugin.
I have this same issue as well. My bigger concern is why this repo is not following semver? I saw 0.3.0 was published as a "breaking change". Should that not have been 1.0.0? Because NPM uses ^X.X.X by default this just possibly will break anyone's usage unless they explicitly hardcode versions.
from compression-webpack-plugin.
Fix proposed:
#18
from compression-webpack-plugin.
@Icehunter it is kindof semvar :)
http://semver.npmjs.com/ put in "^0.2.0" for "compression-webpack-plugin" and see that only 0.2.0 is highlighted.
from compression-webpack-plugin.
@jsg2021 They may not have updated the front portion of the site but the default behavior of NPM has changed since 4+ (to the best of my knowledge).
Such as if you do:
npm i hapi@^11.0.0
[email protected] /Users/icehunter/GitHub/nodeplayground
└── [email protected] extraneous
The same if I did:
npm i hapi@^10.0.0
[email protected] /Users/icehunter/GitHub/nodeplayground
└── [email protected] extraneous
If you click through to https://docs.npmjs.com/getting-started/semantic-versioning you can see that they have it as:
Patch releases: 1.0 or 1.0.x or ~1.0.4
Minor releases: 1 or 1.x or ^1.0.4
Major releases: * or x
So ^1.0.4 and 1.x are the same.
from compression-webpack-plugin.
This has been breaking my builds and throwing lots of errors since the inclusion of the node-zopfli stuff on windows.
from compression-webpack-plugin.
Also @Icehunter, anything semver 0.x.x is considered initial development and may change at any time. See http://semver.org/#spec-item-4
from compression-webpack-plugin.
Fair enough. I'll wait till this hits 1.0 to use it then. Personally though even if it's under 0.X I follow it as much as I can :)
from compression-webpack-plugin.
@Icehunter I've been using 0.2.0 in prod for some time on Windows and OSX and haven't had any issues until 0.3.0. 🍻
from compression-webpack-plugin.
yeah I get this problem also
from compression-webpack-plugin.
I got this issue too
from compression-webpack-plugin.
Any progress for this issue?
from compression-webpack-plugin.
The 0.2.0 works, but the build result seems strange.
The config i used:
{
asset: "[path].gz[query]",
algorithm: "gzip",
test: /\.js$|\.html$/,
threshold: 10240,
minRatio: 0.8
}
After build, there generated a file named with '[path].gz[query]', that's so boring. Any one could help with it?
from compression-webpack-plugin.
@zjhiphop that's the syntax for 0.3.0
. Try it with {file}.gz
instead if you're using 0.2.0
.
from compression-webpack-plugin.
+1 Also have this issue
from compression-webpack-plugin.
All the change I can see in 1.3.1 is the bump in version. Am I mistaken?
from compression-webpack-plugin.
Related Issues (20)
- 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
- Type definition `BasePluginOptions` property `test` should use `Rules`, not `Rule`
- compression-webpack-plugin .woff compression is not supported HOT 3
- Bug: `deleteOriginalAssets: true` removes the `.js.LICENSE.txt` files HOT 3
- Bug: `deleteOrigianlAssets: true` breaks the build badly... HOT 5
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.