check out my latest app: Doodle Draw
and my latest blog post
Minify JavaScript
Home Page: https://atom.io/packages/uglify
License: MIT License
check out my latest app: Doodle Draw
and my latest blog post
Refused to evaluate a string as JavaScript because 'unsafe-eval'.....
This is the error I am getting (on this and other packages) when I try to run uglify command in atom, this is really weird because I have been getting this a lot since I reinstalled ubuntu gnome. I pulled in atom from the repo as usual... node is updated to latest, I have tested and can run uglifyjs from command line (which I believe you guys use???) but for some reason I get this error on a few packages now.
The full error is...
Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
Now i am aware of the details surrounding this error... but I am at a loss if it is me, or this package (and others) at fault.
thanks
Paul
It's really helpful for me
Thank you.
If you have several files open on the tabs, and switch between them by clicking the tabs Uglify won't be available in the command palette, you have to click inside and have the cursor blinking inside for it to be available.
This wasn't obvious at first, and caused frustration.
Hi,
I want to uglify multiple files into one
//uglify-js out: out/file.js, files: file-1.js file-2.js file-3.js, compress: true
is it possible with your package.
Thanks in advance
This can be more convenient.
It would be nice to have an "uglify on save" feature similar to this one:
https://github.com/lohek/less-autocompile
In less-autocompile you can specify an "out" parameter as comment on line 1 and every time you save the LESS file the package creates a CSS file with the given filename.
A similar option would be nice to have for this plugin, too.
Maybe:
// auto-uglify: example.min.js
?
I have a file with some libraries and comments at the top that I want to maintain and unminified code at the bottom. Right now I have to copy it to a separate file, minify, and copy back, but it'd be nice if I could save some time by minifying part of it in place.
Looking at the code, it seems like it's done deliberately, but I'm not sure that it has to be?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.