Skip to content

Commit

Permalink
Merge pull request #6 from nizarmah/es6_support
Browse files Browse the repository at this point in the history
Feature: Added JS ES6+ Support
  • Loading branch information
nizarmah authored Apr 25, 2020
2 parents 1fd7b78 + 10b9269 commit 8eb2c75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# auto-minify
Minifies JS and CSS files with UglifyJS and CleanCSS
Minifies JS and CSS files with Babel-Minify and CleanCSS


### Inputs
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ exec_minify_cmd () {
out=$2

if [[ $file == *.js ]]; then
npx uglifyjs $file --compress --mangle --output $out
npx minify $file --out-file $out
elif [[ $file == *.css ]]; then
npx cleancss -o $out $file
fi
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"repository": "nizarmah/auto-minify",
"homepage": "https://github.com/nizarmah/auto-minify/",
"dependencies": {
"uglify-js": "^3.8.0",
"babel-minify": "^0.5.1",
"clean-css-cli": "^4.3.0"
},
"author": {
Expand Down

0 comments on commit 8eb2c75

Please sign in to comment.