Skip to content

Commit

Permalink
Update webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenAnhTuan1912 committed Aug 8, 2024
1 parent adf9181 commit 8032274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ const { CleanWebpackPlugin } = require("clean-webpack-plugin");

// Name of pages must be matched with html files in gui directory
const _PAGES = ["index", "error"];
const _PAGE_JS_FILES = ["index"];
const _ENTRY = "./gui/js";
const _DESTINATION = "build/gui";

module.exports = {
entry: _PAGES.reduce((result, pageName) => {
entry: _PAGE_JS_FILES.reduce((result, pageName) => {
result[pageName] = _ENTRY + `/${pageName}/${pageName}.js`;
return result;
}, {}),
Expand Down

0 comments on commit 8032274

Please sign in to comment.