Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore(hook): add babel pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 16, 2020
1 parent 34cc26b commit d87af71
Show file tree
Hide file tree
Showing 14 changed files with 3,967 additions and 18 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": "> 0.25%, not dead"
}
],
"minify"
]
}
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Hugo default output directory
public
/exampleSite/resources
/exampleSite/zh/resources
public/
/exampleSite/resources/
/exampleSite/zh/resources/
node_modules/

## OS Files
# Windows
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@
{{- end -}}
{{- end -}}

{{- /* Theme script */ -}}
{{- slice "js/theme.js" | .Scratch.Add "scriptLocal" -}}

{{- range .Scratch.Get "linkCDN" -}}
{{- safeHTML . -}}
{{- end -}}
Expand All @@ -178,3 +175,6 @@
{{- end -}}
<script src="{{ $res.RelPermalink }}"></script>
{{- end -}}

{{- /* Theme script */ -}}
<script src=/js/theme.min.js></script>
Loading

0 comments on commit d87af71

Please sign in to comment.