ES Modulesに移行
This commit is contained in:
parent
0c3df4245d
commit
69212dd99a
105 changed files with 3154 additions and 3230 deletions
|
@ -1,7 +1,12 @@
|
|||
import views from 'koa-views';
|
||||
import { version } from '../meta.json';
|
||||
import path from 'path';
|
||||
import url from 'url';
|
||||
|
||||
import { meta } from '../config.js';
|
||||
|
||||
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
||||
|
||||
export const render = views(__dirname + '/views', {
|
||||
extension: 'pug',
|
||||
options: { version },
|
||||
extension: 'pug',
|
||||
options: { version: meta.version },
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue