add webpack

This commit is contained in:
Vick Scarlet
2021-09-03 20:49:04 +08:00
parent 6cb60663b6
commit 0350ec09c4
8 changed files with 2157 additions and 27 deletions

14
src/index.js Normal file
View File

@@ -0,0 +1,14 @@
import App from '../src/app.js';
window.json = async fileName=>(await axios(`../data/${fileName}.json`)).data;
// Pssst, I've created a github package - https://github.com/brookesb91/dismissible
const hideBanners = (e) => {
document
.querySelectorAll(".banner.visible")
.forEach((b) => b.classList.remove("visible"));
};
const app = new App();
app.initial();