mirror of https://github.com/curbengh/hexo-yam
				
				
				
			Use hexo variable for public folder
http://searene.me/2016/07/17/Hexo-Source-Code-Demystified/
This commit is contained in:
		
							parent
							
								
									71c5878400
								
							
						
					
					
						commit
						64e72c6248
					
				|  | @ -100,7 +100,7 @@ function logic_gzip() { | |||
|     // Return if disabled.
 | ||||
|     if (false === options.enable) return; | ||||
| 
 | ||||
|     var publicFolder = hexo.base_dir+'public'; | ||||
|     var publicFolder = hexo.public_dir; | ||||
| 
 | ||||
|     var compressFile = function (currentPath) { | ||||
|       var files = fs.readdirSync(currentPath); | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { | ||||
|   "name": "hexo-yam", | ||||
|   "description": "Yet Another Minifier. Minify and compress html, js and css", | ||||
|   "version": "0.4.1", | ||||
|   "version": "0.4.2", | ||||
|   "readme": "README.md", | ||||
|   "main": "index.js", | ||||
|   "directories": { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue