Changed webpack config, added index.html

This commit is contained in:
Eunchong Kim 2021-07-23 19:02:30 +09:00
parent 5092cf1470
commit 204dc9a2bb
6 changed files with 5769 additions and 2 deletions

12
index.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Uno game JS</title>
<script src='js/uno_game.js'></script>
</head>
<body>
<div id='uno-game'></div>
</body>
</html>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.1 KiB

5395
js/377dcbde62f67ce002a7.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 296 KiB

BIN
js/494a6b831f5837e010b9.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

359
js/uno_game.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -4,8 +4,8 @@ module.exports = {
mode: "development", // "production" | "development" | "none" mode: "development", // "production" | "development" | "none"
entry: "./src/index.js", // string | object | array entry: "./src/index.js", // string | object | array
output: { output: {
path: path.resolve(__dirname, "dist"), // string (default) path: path.resolve(__dirname, "js"), // string (default)
filename: "[name].js", // string (default) filename: "uno_game.js", // string (default)
//publicPath: "/assets/", // string //publicPath: "/assets/", // string
uniqueName: "uno-game", // (defaults to package.json "name") uniqueName: "uno-game", // (defaults to package.json "name")
// unique name for this build to avoid conflicts with other builds in the same HTML // unique name for this build to avoid conflicts with other builds in the same HTML