Compare commits
	
		
			2 Commits
		
	
	
		
			69cd58e487
			...
			be4678eab1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| be4678eab1 | |||
| 5c80316d89 | 
							
								
								
									
										1959
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1959
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										11
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								package.json
									
									
									
									
									
								
							@ -4,17 +4,18 @@
 | 
				
			|||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "test": "echo \"Error: no test specified\" && exit 1",
 | 
					    "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": "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/index.html 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": {
 | 
					  "devDependencies": {
 | 
				
			||||||
 | 
					    "html-webpack-plugin": "^5.5.1",
 | 
				
			||||||
    "webpack": "^5.73.0",
 | 
					    "webpack": "^5.73.0",
 | 
				
			||||||
    "webpack-cli": "^4.7.2"
 | 
					    "webpack-cli": "^4.7.2"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "cash-dom": "^8.1.2",
 | 
					    "cash-dom": "^8.1.5",
 | 
				
			||||||
    "chart.js": "^4.0.1",
 | 
					    "chart.js": "^4.3.0",
 | 
				
			||||||
    "chartjs-adapter-dayjs-3": "^1.2.3",
 | 
					    "chartjs-adapter-dayjs-3": "^1.2.3",
 | 
				
			||||||
    "dayjs": "^1.11.6"
 | 
					    "dayjs": "^1.11.7"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,6 @@
 | 
				
			|||||||
	    <link rel="dns-prefetch" href="https://data.wowtoken.app">
 | 
						    <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/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">
 | 
					        <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>
 | 
					    </head>
 | 
				
			||||||
    <body>
 | 
					    <body>
 | 
				
			||||||
        <div class="flex-container">
 | 
					        <div class="flex-container">
 | 
				
			||||||
 | 
				
			|||||||
@ -1,10 +1,17 @@
 | 
				
			|||||||
const path = require('path');
 | 
					const path = require('path');
 | 
				
			||||||
 | 
					const HtmlWebpackPlugin = require('html-webpack-plugin');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
  entry: './src/index.js',
 | 
					  entry: './src/index.js',
 | 
				
			||||||
 | 
					  plugins: [
 | 
				
			||||||
 | 
					    new HtmlWebpackPlugin({
 | 
				
			||||||
 | 
					      template: "src/index.html"
 | 
				
			||||||
 | 
					    }),
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
  output: {
 | 
					  output: {
 | 
				
			||||||
    filename: 'bundle.js',
 | 
					    filename: '[name].[contenthash].js',
 | 
				
			||||||
    path: path.resolve(__dirname, 'dist'),
 | 
					    path: path.resolve(__dirname, 'dist'),
 | 
				
			||||||
    libraryTarget: 'window',
 | 
					    libraryTarget: 'window',
 | 
				
			||||||
 | 
					    clean: true,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user