0.0.1 • Published 8 years ago

hexo-env v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hexo-env

This is the plugin for Hexo that tell development or production.

Installation

npm install hexo-env --save

Usage

var hexo_env = require('hexo-env');

if( hexo_env.env(hexo) == 'development' ){
	// Currently, the hexo server is running.
}else if( hexo_env.env(hexo) == 'production'){
	// hexo is currently deploying your website.
}

If you want to get the current mode on template, use cache variable . For details please see the following . https://github.com/hexojs/hexo/issues/371

License

MIT