Skip to content

Commit

Permalink
Tentative Windows development fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neirenoir committed Apr 5, 2024
1 parent 89c70fc commit d92da09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from "path";
import { CleanWebpackPlugin } from 'clean-webpack-plugin';
import webpack from "webpack";
import { fileURLToPath } from 'url';

export default function (env) {
const mode =
(env.mode === 'demo') ? 'demo' : 'release';

return {
mode: (mode === "demo") ? "development" : "production",
entry: './src/app.ts',
Expand Down Expand Up @@ -40,7 +41,7 @@ export default function (env) {
alias: {
"kanaloa-address-book.json":
path.resolve(
new URL('.', import.meta.url).pathname,
fileURLToPath(new URL('.', import.meta.url)),
`src/data/kanaloa-address-book.${mode}.json`
),
},
Expand Down

0 comments on commit d92da09

Please sign in to comment.