Compare commits

...

2 Commits

4 changed files with 613 additions and 1367 deletions

1959
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,17 +4,18 @@
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"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/"
"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/"
},
"devDependencies": {
"html-webpack-plugin": "^5.5.1",
"webpack": "^5.73.0",
"webpack-cli": "^4.7.2"
},
"dependencies": {
"cash-dom": "^8.1.2",
"chart.js": "^4.0.1",
"cash-dom": "^8.1.5",
"chart.js": "^4.3.0",
"chartjs-adapter-dayjs-3": "^1.2.3",
"dayjs": "^1.11.6"
"dayjs": "^1.11.7"
}
}

View File

@ -10,7 +10,6 @@
<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,10 +1,17 @@
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: 'bundle.js',
filename: '[name].[contenthash].js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'window',
clean: true,
},
};