Skip to content

Commit

Permalink
fix typo in filter
Browse files Browse the repository at this point in the history
update webpack for non-eval build
  • Loading branch information
ikreymer committed Oct 14, 2024
1 parent a252dd5 commit f64a6c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/item-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ItemIndex extends LitElement {
for (const item of this.items) {
if (
item.sourceUrl.indexOf(this.query) >= 0 ||
item.filename.indexOf(this.query) >= 0 ||
(item.filename && item.filename.indexOf(this.query) >= 0) ||
Boolean(item.loadUrl && item.loadUrl.indexOf(this.query) >= 0) ||
(item.title && item.title.indexOf(this.query) >= 0)
) {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const electronPreloadConfig = (/*env, argv*/) => {
return merge(tsConfig, config);
};

const browserConfig = (/*env, argv*/) => {
const browserConfig = (env, argv) => {
const isDevServer = process.env.WEBPACK_SERVE;

/** @type {import('webpack').Configuration['entry']} */
Expand Down Expand Up @@ -125,7 +125,7 @@ const browserConfig = (/*env, argv*/) => {
},
entry,
optimization,

devtool: argv.mode === "production" ? undefined : "source-map",
output: {
path: path.join(__dirname),
filename: "[name].js",
Expand Down

0 comments on commit f64a6c8

Please sign in to comment.