Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

Commit 3c7842e

Browse files
committed
fix env
1 parent c02326e commit 3c7842e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

bun.lockb

1.1 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"chalk": "^5.3.0",
2626
"console-clear": "^1.1.1",
2727
"dotenv": "^16.4.5",
28+
"dotenv-webpack": "^8.1.0",
2829
"inquirer": "^10.1.2",
2930
"yargs": "^17.7.2"
3031
}

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const path = require('path');
2-
3-
require("dotenv").configDotenv();
2+
const Dotenv = require('dotenv-webpack');
43

54
module.exports = {
65
target: "node",
76
entry: "./index.ts",
87
mode: "production",
8+
plugins: [new Dotenv()],
99
output: {
1010
filename: 'bundle.js',
1111
path: path.resolve(__dirname, 'build'),

0 commit comments

Comments
 (0)