mirror of https://gitlab.com/curben/blog
refactor: array in one line
This commit is contained in:
parent
0fe5658173
commit
c601a31b13
|
@ -5,10 +5,7 @@ const template = require('./template')
|
||||||
|
|
||||||
module.exports = function (locals) {
|
module.exports = function (locals) {
|
||||||
const config = this.config
|
const config = this.config
|
||||||
let skipRenderList = [
|
let skipRenderList = ['*.js', '*.css']
|
||||||
'*.js',
|
|
||||||
'*.css'
|
|
||||||
]
|
|
||||||
|
|
||||||
if (Array.isArray(config.skip_render)) {
|
if (Array.isArray(config.skip_render)) {
|
||||||
skipRenderList = skipRenderList.concat(config.skip_render)
|
skipRenderList = skipRenderList.concat(config.skip_render)
|
||||||
|
|
Loading…
Reference in New Issue