Updating webpack config

This commit is contained in:
2020-06-02 04:24:55 +01:00
parent a122c9821b
commit 7d3ae345a4
7 changed files with 192 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
"use strict";
import { library, dom } from "@fortawesome/fontawesome-svg-core";
// import AOS from "aos";
import {
faBookOpen,
@@ -70,7 +71,6 @@ export default {
$(".content table").addClass("table");
$(".content table").wrap('<div class="table-responsive" />');
$(".content table thead").addClass("thead-dark");
$(".content pre").wrap('<figure class="highlight" />');
$(".content figure > img").addClass("img-fluid");
},
lazyload: async () => {
@@ -100,4 +100,8 @@ export default {
$position = $scroll;
});
},
aos: () => {
var AOS = require("aos");
AOS.init({ duration: 1000, once: false, useClassNames: true });
},
};

View File

@@ -9,4 +9,5 @@ window.addEventListener("DOMContentLoaded", async (event) => {
App.lazyload();
App.loadFontAwesome();
App.navbarFade();
App.aos();
});