Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-generator-optimize

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-generator-optimize

Optimize assets plugin for Hexo

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by75%
Maintainers
1
Weekly downloads
 
Created
Source

Hexo Plugin to Optimize Website Files for Deployment

Generator for Hexo that optimizes css, js, html, and imgages + optionally deploys your site.

CLI Usage

hexo optimize -d
or aliases...
hexo o #hexo optimize
hexo od #hexo optimize -d

Generate, then Optimize, then optional deploy (-d flag)

Config Options

In Hexo's _config.yml you can set the following options...

optimize:
  # Defaults
  image_min: true
  css_concat: true
  css_min: true
  js_concat: true
  js_min: true
  html_min: true
  gzip: true

If you want to deploy be sure to set up deployment in your config as well...

# 1. For Github
deploy:
  type: github
  repo: <repository url>
  branch: [branch]

# 2. For Heroku
deploy:
  type: heroku
  repo: <repository url>

# 3. For Rsync
deploy:
  type: rsync
  host: <host>
  user: <user>
  root: <root>
  port: [port] # Default is 22
  delete: [true|false] # Default is true

# 4. For OpenShift DIY Cartridge
deploy:
  type: openshift
  remote: <upstream git remote>
  branch: [upstream git branch] # Default is master

Keywords

FAQs

Package last updated on 22 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc