mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-17 21:24:59 +00:00
Improve internal API
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import * as fs from 'fs';
|
||||
import { locations } from '../config';
|
||||
|
||||
export default function read_template(dir = locations.src()) {
|
||||
export default function read_template(dir: string) {
|
||||
try {
|
||||
return fs.readFileSync(`${dir}/template.html`, 'utf-8');
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user