This commit is contained in:
Olivier Gagnon
2021-09-19 23:29:02 -04:00
parent 4a3201cba3
commit fb37f6b94d
25 changed files with 242 additions and 242 deletions
+2 -4
View File
@@ -12,9 +12,7 @@ module.exports = (env, argv) => {
const runInContainer = (env || {}).runInContainer === true;
const isDevelopment = argv.mode === "development";
const outputDirectory = isDevServer ? "dist-dev" : "dist";
const entries = {};
entries[`${outputDirectory}/engine`] = "./src/engine.jsx";
entries[`${outputDirectory}/engineStyle`] = "./src/engineStyle.js";
const entry = "./src/index.tsx";
const statsConfig = {
builtAt: true,
@@ -134,7 +132,7 @@ module.exports = (env, argv) => {
isDevelopment && new ReactRefreshWebpackPlugin(),
].filter(Boolean),
target: "web",
entry: entries,
entry: entry,
output: {
path: path.resolve(__dirname, "./"),
filename: "[name].bundle.js",