refactor(ts): import script using new Hugo Module logic

This commit is contained in:
Jimmy Cai 2020-12-21 22:31:48 +01:00
parent 33685fb878
commit f10161de05
2 changed files with 14 additions and 4 deletions

10
assets/jsconfig.json Normal file
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"*"
]
},
}
}

View File

@ -6,10 +6,10 @@
* @link: https://github.com/CaiJimmy/hugo-theme-stack
*/
import { createGallery } from "./gallery"
import { getColor } from './color';
import menu from './menu';
import createElement from './createElement';
import { createGallery } from "ts/gallery"
import { getColor } from 'ts/color';
import menu from 'ts/menu';
import createElement from 'ts/createElement';
let Stack = {
init: () => {