Make lwip optional dependency
This allows it to run without compiler (namely VS on Windows). Image minification won't work when LWIP is not available. App will warn you about it. It will also generate lightbox for every image even those which are under 512. It also normalizes every path to path/to/file from path\to\file.
Showing
- package.json 3 additions, 1 deletionpackage.json
- sitegin/transformer-images.js 43 additions, 27 deletionssitegin/transformer-images.js
- sitegin/transformer-markdown.js 16 additions, 4 deletionssitegin/transformer-markdown.js
- sitegin/transformer-other.js 3 additions, 2 deletionssitegin/transformer-other.js
... | ... | @@ -12,7 +12,6 @@ |
"chokidar": "^1.4.2", | ||
"express": "^4.13.4", | ||
"highlight.js": "^9.2.0", | ||
"lwip": "0.0.8", | ||
"marked": "^0.3.5", | ||
"mkdirp": "^0.5.1", | ||
"moment": "^2.11.2", | ||
... | ... | @@ -30,5 +29,8 @@ |
"istanbul": "^0.4.2", | ||
"mocha": "^2.3.4", | ||
"unit.js": "^2.0.0" | ||
}, | ||
"optionalDependencies": { | ||
"lwip": "0.0.8" | ||
} | ||
} |
Please register or sign in to comment