Skip to content

Commit

Permalink
ファイル構造の整理
Browse files Browse the repository at this point in the history
  • Loading branch information
ics-sawada-h committed Aug 19, 2024
1 parent ac906da commit 4cbf24f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/multiple-animation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
<a href="../../">目次へもどる</a>
</footer>

<script type="module" src="main.js"></script>
<script type="module" src="./main.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<body>
<div id="app"></div>

<script type="module" src="sample.js"></script>
<script type="module" src="./sample.js"></script>
</body>
</html>
12 changes: 8 additions & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import { resolve } from "path";
import { defineConfig } from "vite";

const root = resolve(__dirname, "src");
const outDir = resolve(__dirname, "dist");

export default defineConfig({
root,
build: {
outDir: "../dist",
outDir,
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
sample: resolve(__dirname, "src/sample/index.html"),
multiple: resolve(__dirname, "src/multiple-animation/index.html"),
main: resolve(root, "index.html"),
sample: resolve(root, "sample", "index.html"),
multiple: resolve(root, "multiple-animation", "index.html"),
},
},
base: "/240827_theatrejs/",
Expand Down

0 comments on commit 4cbf24f

Please sign in to comment.