mirror of https://github.com/curbengh/hexo-yam
commit
84b2457371
|
@ -102,7 +102,7 @@ function logicGzip () {
|
||||||
let route = hexo.route
|
let route = hexo.route
|
||||||
let routeList = route.list()
|
let routeList = route.list()
|
||||||
|
|
||||||
return Promise.all(routeList.filter(path => (path.endsWith('.html') || path.endsWith('.js') || path.endsWith('.css'))).map(path => {
|
return Promise.all(routeList.filter(path => (path.endsWith('.html') || path.endsWith('.js') || path.endsWith('.css') || path.endsWith('.xml') || path.endsWith('.json'))).map(path => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// Grab all assets using hexo router
|
// Grab all assets using hexo router
|
||||||
let assetPath = route.get(path)
|
let assetPath = route.get(path)
|
||||||
|
@ -142,7 +142,7 @@ function logicBrotli () {
|
||||||
let route = hexo.route
|
let route = hexo.route
|
||||||
let routeList = route.list()
|
let routeList = route.list()
|
||||||
|
|
||||||
return Promise.all(routeList.filter(path => (path.endsWith('.html') || path.endsWith('.js') || path.endsWith('.css'))).map(path => {
|
return Promise.all(routeList.filter(path => (path.endsWith('.html') || path.endsWith('.js') || path.endsWith('.css') || path.endsWith('.xml') || path.endsWith('.json'))).map(path => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// Grab all assets using hexo router
|
// Grab all assets using hexo router
|
||||||
let assetPath = route.get(path)
|
let assetPath = route.get(path)
|
||||||
|
|
Loading…
Reference in New Issue