Compare commits

..

No commits in common. "be4678eab1205b25ce296078200d4b224c7e4aad" and "69cd58e48735c675f4fc2055a9c2ae6e346e7f74" have entirely different histories.

4 changed files with 1367 additions and 613 deletions

1959
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,18 +4,17 @@
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --mode production && mkdir -p dist && cp src/robots.txt src/style.css src/favicon.ico dist/",
"build-dev": "webpack --mode development && mkdir -p dist && cp src/robots.txt src/style.css src/favicon.ico dist/"
"build": "webpack --mode production && mkdir -p dist && cp src/robots.txt src/index.html src/style.css src/favicon.ico dist/",
"build-dev": "webpack --mode development && mkdir -p dist && cp src/robots.txt src/index.html src/style.css src/favicon.ico dist/"
},
"devDependencies": {
"html-webpack-plugin": "^5.5.1",
"webpack": "^5.73.0",
"webpack-cli": "^4.7.2"
},
"dependencies": {
"cash-dom": "^8.1.5",
"chart.js": "^4.3.0",
"cash-dom": "^8.1.2",
"chart.js": "^4.0.1",
"chartjs-adapter-dayjs-3": "^1.2.3",
"dayjs": "^1.11.7"
"dayjs": "^1.11.6"
}
}

View File

@ -10,6 +10,7 @@
<link rel="dns-prefetch" href="https://data.wowtoken.app">
<link rel="preload" href="https://data.wowtoken.app/token/current.json" as="fetch" type="application/json" crossorigin="anonymous">
<link rel="preload" href="https://data.wowtoken.app/token/history/us/72h.json" as="fetch" type="application/json" crossorigin="anonymous">
<script src="bundle.js"></script>
</head>
<body>
<div class="flex-container">

View File

@ -1,17 +1,10 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.js',
plugins: [
new HtmlWebpackPlugin({
template: "src/index.html"
}),
],
output: {
filename: '[name].[contenthash].js',
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'window',
clean: true,
},
};