Skip to content

Commit 4646a60

Browse files
committed
Stop minifying images to remove dependency on imagemin.
1 parent 556cb20 commit 4646a60

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

INSTALL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ development server:
6565
* Any compatible HTTP server like Apache or Nginx.
6666
* MariaDB/MySQL server v5.6.41 or above (not tested with previous versions).
6767
* Node.js v10.13.0 or above (you can skip this dependency but won't be able to deploy to production):
68-
* imagemin, imagemin-cli, less, less-plugin-clean-css & uglify-js packages.
68+
* less, less-plugin-clean-css & uglify-js packages.
6969
* Optionally a Unix shell (running it through Cygwin is fine).
7070

7171
Step by step install instructions:

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
},
1212
"license": "AGPL-3.0",
1313
"dependencies": {
14-
"imagemin": "^6.1.0",
15-
"imagemin-cli": "^4.0.0",
1614
"less": "^3.9.0",
1715
"less-plugin-clean-css": "^1.5.1",
1816
"uglify-js": "^3.4.9"

setup/vagrant/Vagrantfile

-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ Vagrant.configure("2") do |config|
4444
4545
# Install nodejs modules
4646
for module in \
47-
imagemin \
48-
imagemin-cli \
4947
less \
5048
less-plugin-clean-css \
5149
uglify-js; do

src/static/.creep.def

+3-7
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,18 @@
1414
},
1515
{
1616
"pattern": "\\.css$",
17-
"adapt": "lessc --clean-css '{}'"
17+
"modify": "lessc --clean-css '{}'"
1818
},
1919
{
2020
"pattern": "\\.min\\.js$"
2121
},
2222
{
2323
"pattern": "\\.js$",
24-
"adapt": "uglifyjs --compress --mangle -- '{}'"
25-
},
26-
{
27-
"pattern": "\\.(gif|jpg|png)$",
28-
"adapt": "imagemin < '{}'"
24+
"modify": "uglifyjs --compress --mangle -- '{}'"
2925
},
3026
{
3127
"pattern": "(.*)\\.less$",
32-
"adapt": "lessc --clean-css '{}'",
28+
"modify": "lessc --clean-css '{}'",
3329
"link": "find . -name '*.less' | xargs grep -Fl \"$(basename '{}')\" || true",
3430
"name": "\\1.css"
3531
}

0 commit comments

Comments
 (0)