Comments (4)
Hello ( :
So, yeah I believe the problem is because of uglifyjs
, since I am using it to minify the file.
UglifyJS does not support es6.
const
is an es6 declaration, so it throws an error.
ChrisR on StackOverflow
No worries though, I'll find a different package to use instead of uglifyjs
. If you have any recommendations for annpm
package that minifies JS files, please let me know.
You can solve the issue temporarily using
var
instead ofconst
. But I promise you won't need to, I'll fix the issue today ( :
Edit:
I will be using babel-minify
instead.
from auto-minify.
Released v1.6
with ES6+ Support on the Marketplace ( :
Just update the version you are currently using, and kindly let me know if you run into any new issues or if you have any recommendations!
Thanks a lot for all the contributions you have been doing. ❤️
from auto-minify.
great, thanks for your quick fix
from auto-minify.
I also tested it in Auto-Minify-Test/issues#5
Here's a screenshot of the commits ( :
Kindly let me know if there is anything else you'd want me to fix or add :D
By the way, I have been thinking of making it possible for users to pass their own "options" to the
babel-minify
and theclean-css
commands being run. Let me know if that is something you are interested in so I work on adding it. If it isn't, so I don't waste time on it and work on something else.
from auto-minify.
Related Issues (12)
- Handling nested directories HOT 3
- Supporting JSON file minification HOT 3
- Option to overwrite source files (instead of creating new .min files) when not committing back to repo HOT 3
- Update readme examples HOT 2
- Minify HTML files HOT 1
- CSS minification in :not() HOT 3
- Help with an error HOT 5
- Only minify changed files HOT 1
- Mark action as failed on error in minification process HOT 5
- Expected format {org}/{repo}[/path]@ref. Actual 'nizarmah/auto-minify' HOT 5
- Action Should Create Folder/Directory When It Doesn't Exist HOT 3
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 auto-minify.