hexo-env
v0.0.1
Published
This is the plugin for Hexo that tell development or production.
Downloads
2
Maintainers
Readme
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