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

Allows user to overwrite a specific script.

Note: The required version of Hugo might bump up.
This commit is contained in:
Jimmy Cai 2020-12-21 22:34:54 +01:00 committed by GitHub
parent 33685fb878
commit 54571f036b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: () => {