cleanup some code
This commit is contained in:
parent
62f3c08aad
commit
928dc48011
@ -1,6 +1,8 @@
|
||||
const fs = require('fs')
|
||||
|
||||
module.exports = function compile(page, fn){
|
||||
module.exports = compile
|
||||
|
||||
function compile(page, fn){
|
||||
switch(page.type){
|
||||
case 'md':
|
||||
compileMD(page.file, fn)
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"description": "",
|
||||
"main": "compile.js",
|
||||
"scripts": {
|
||||
"test": "nodemon compile.js"
|
||||
"test": "nodemon app.js"
|
||||
},
|
||||
"author": "Mats van Reenen",
|
||||
"license": "GPL-3.0",
|
||||
|
||||
Reference in New Issue
Block a user