Comments (3)
Still using the google javascript closure compiler, but it is hidden now. It is wrapped around a gulp plugin :)
from clientjs.
Why didn't you use Uglify2 instead?
from clientjs.
@dsmontoya I started with Uglify2
or gulp-minify, but there were a few issues:
- minifiying multiple files to a single file was not intuitive and needed
gulp-concat
. - a copy of the original source was also placed in the
dist
folder (never figured out what options existed or how they worked to remove it) which might be good behavior, but we haven't discussed it. - The final resulting single concatenated minified file had issues and broke methods like
getFlashVersion()
.
The only pro was that the minification was slightly better than the google closure compiler by a few bytes (like ~0.6 KB).
Since we currently are using the google closure compiler I decided it would be fine to stick with it for now until we can resolve the issues above with gulp-minify. Also the resources we were able to find for the google closure compiler allowed for easy use with Gulp
:
- https://developers.google.com/closure/compiler/?hl=en
- https://github.com/google/closure-compiler
- https://www.npmjs.com/package/google-closure-compiler
- https://www.npmjs.com/package/closurecompiler
- https://www.npmjs.com/package/gulp-closure-compiler
- https://en.wikipedia.org/wiki/Google_Closure_Tools
All that said, if later we can figure out how to get Uglify2
working properly, and it gets us better compression/minification I think we should switch to it :)
from clientjs.
Related Issues (20)
- Update list of devices/brands. HOT 2
- NPM release version HOT 2
- Compatibility problem with Vue HOT 3
- On the same computer, on the same browser client.getFonts() Run it twice and the result is different in fireFox
- Vulnerable ua-parser-js version HOT 1
- Congratulations!!! I am glad you are back to update and improve this amazing and useful script.
- Advice of data point permanence HOT 1
- osVersion is Windows 11, But detecting 10 HOT 3
- Server Error ReferenceError: navigator is not defined HOT 6
- Generating different fingerprint id for different browser issue HOT 4
- Not working on nextjs HOT 9
- why getFingerprint show other Digital fingerprints based on same device/browser in NextJS
- remove dep on globalthis HOT 1
- it needs an update to check incognito Mode
- e[t].toUpperCase is not a function
- Is clientjs an idled project? HOT 8
- Missing copyright notice
- The examples provided in the documentation may generate errors
- The GetFingerprint() method blocks the main thread
- Update ua-parser-js version 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 clientjs.