mirror of https://github.com/curbengh/hexo-yam
				
				
				
			
						commit
						be96f15ceb
					
				|  | @ -7,10 +7,10 @@ jobs: | |||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Use Node.js 12.x | ||||
|       - name: Use Node.js 14.x | ||||
|         uses: actions/setup-node@v2.1.5 | ||||
|         with: | ||||
|           node-version: '12.x' | ||||
|           node-version: '14.x' | ||||
|       - name: Cache NPM dependencies | ||||
|         uses: actions/cache@v2.1.4 | ||||
|         with: | ||||
|  |  | |||
|  | @ -10,10 +10,10 @@ jobs: | |||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Use Node.js 12.x | ||||
|       - name: Use Node.js 14.x | ||||
|         uses: actions/setup-node@v2.1.5 | ||||
|         with: | ||||
|           node-version: '12.x' | ||||
|           node-version: '14.x' | ||||
|       - name: Install Dependencies | ||||
|         run: npm install | ||||
|       - name: Run Snyk to check for vulnerabilities | ||||
|  |  | |||
|  | @ -8,7 +8,7 @@ jobs: | |||
|     strategy: | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest] | ||||
|         node-version: ['10', '12', '14', '15'] | ||||
|         node-version: ['12', '14', '15', '16'] | ||||
|       fail-fast: false | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|  | @ -33,7 +33,7 @@ jobs: | |||
|     strategy: | ||||
|       matrix: | ||||
|         os: [ubuntu-latest] | ||||
|         node-version: ['12.x'] | ||||
|         node-version: ['14.x'] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Use Node.js ${{ matrix.node-version }} | ||||
|  |  | |||
							
								
								
									
										20
									
								
								README.md
								
								
								
								
							
							
						
						
									
										20
									
								
								README.md
								
								
								
								
							|  | @ -13,7 +13,7 @@ Yet Another Minifier for Hexo. Minify and compress HTML, JS, CSS, SVG, XML and J | |||
| 
 | ||||
| ## Table of contents | ||||
| 
 | ||||
| - [Version 4](#version-4) | ||||
| - [Version 5](#version-5) | ||||
| - [Installation](#installation) | ||||
| - [Options](#options) | ||||
| - [HTML](#html) | ||||
|  | @ -27,16 +27,20 @@ Yet Another Minifier for Hexo. Minify and compress HTML, JS, CSS, SVG, XML and J | |||
| - [Globbing](#globbing) | ||||
| - [HTTP Compression](#http-compression) | ||||
| 
 | ||||
| ## Version 4 | ||||
| In v4, `logger:` option has been renamed to `verbose:` | ||||
| 
 | ||||
| Migrate: | ||||
| ## Version 5 | ||||
| In v5, `svg.plugins:` option should follow svgo v2+ syntax: | ||||
| 
 | ||||
| ``` diff | ||||
| minify: | ||||
|   html: | ||||
| -    logger: true | ||||
| +    verbose: true | ||||
|   svg: | ||||
|     plugins: | ||||
| -      - removeComments: false | ||||
| -      - cleanupIDs: false | ||||
| 
 | ||||
| +      - name: 'removeComments' | ||||
| +        active: false | ||||
| +      - name: 'cleanupIDs' | ||||
| +        active: false | ||||
| ``` | ||||
| 
 | ||||
| ## Installation | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { | ||||
|   "name": "hexo-yam", | ||||
|   "description": "Yet Another Minifier. Minify and compress html, js, css, svg, xml and json", | ||||
|   "version": "4.2.0", | ||||
|   "version": "5.0.0", | ||||
|   "readme": "README.md", | ||||
|   "main": "index.js", | ||||
|   "directories": { | ||||
|  | @ -16,7 +16,7 @@ | |||
|     "test": "jest" | ||||
|   }, | ||||
|   "engines": { | ||||
|     "node": ">= 10.18.0" | ||||
|     "node": ">= 12.13.0" | ||||
|   }, | ||||
|   "author": "curben", | ||||
|   "license": "MIT", | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue