diff --git a/src/CharacterSheet.jsx b/src/CharacterSheet.jsx index fd1d894..1792a35 100644 --- a/src/CharacterSheet.jsx +++ b/src/CharacterSheet.jsx @@ -1,5 +1,5 @@ import React, { useState, useEffect, useCallback, useRef } from "react"; -import "../fabula-ultima-sheet.css"; +import "./fabula-ultima-sheet.css"; const STATUSES = ["Slow", "Enraged", "Dazed", "Weak", "Poisoned", "Shaken"]; const FEELINGS = [ diff --git a/book.js b/src/book.js similarity index 84% rename from book.js rename to src/book.js index cf160e1..2cdce55 100644 --- a/book.js +++ b/src/book.js @@ -1,6 +1,6 @@ import React from 'react'; import { createRoot } from 'react-dom/client'; -import BookIndex from './src/BookIndex.jsx'; +import BookIndex from './BookIndex.jsx'; const { title, logoText, pages } = window.__BOOK_DATA__; createRoot(document.getElementById('root')).render( diff --git a/fabula-ultima-sheet.css b/src/fabula-ultima-sheet.css similarity index 100% rename from fabula-ultima-sheet.css rename to src/fabula-ultima-sheet.css diff --git a/src/fabula-ultima-sheet.html b/src/fabula-ultima-sheet.html new file mode 100644 index 0000000..68d965b --- /dev/null +++ b/src/fabula-ultima-sheet.html @@ -0,0 +1,13 @@ + + + + + + Fabula Ultima Character Sheet + + + + +
+ + diff --git a/webpack.config.js b/webpack.config.js index ef96be8..4e927b3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -45,7 +45,7 @@ module.exports = (env, argv) => { return { entry: { sheet: "./src/sheet-main.jsx", - book: "./book.js", + book: "./src/book.js", }, output: { filename: isProd ? "[name].[contenthash].js" : "[name].js", @@ -80,7 +80,7 @@ module.exports = (env, argv) => { ? [new MiniCssExtractPlugin({ filename: "[name].[contenthash].css" })] : []), new HtmlWebpackPlugin({ - template: "./fabula-ultima-sheet.html", + template: "./src/fabula-ultima-sheet.html", filename: "index.html", chunks: ["sheet"], scriptLoading: "blocking",