Skip to content

Commit

Permalink
chore: rename the main bundle to main.js (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Jan 8, 2022
1 parent d89f024 commit 09c3656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/head/others.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="{{ index (index .Site.Data.assets "bundle.js") "src" | relURL }}"></script>
<script src="{{ index (index .Site.Data.assets "main.js") "src" | relURL }}"></script>

<link
rel="preload"
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var config = {
path.resolve("src", "sass", "mobile.scss"),
path.resolve("src", "sass", "print.scss")
],
bundle: path.resolve("src", "js", "app.js"),
main: path.resolve("src", "js", "app.js"),
mermaid: path.resolve("src", "js", "mermaid.js"),
katex: [path.resolve("src", "js", "katex.js")].concat(
glob.sync(path.join(nodeModulesPath, "katex", "dist", "fonts", "*.{woff,woff2}"))
Expand Down

0 comments on commit 09c3656

Please sign in to comment.