Skip to content

Commit

Permalink
moved env file and renamed to example also included dontenv plugin to…
Browse files Browse the repository at this point in the history
… load env files
  • Loading branch information
adrianZahra committed Mar 30, 2023
1 parent 57089f6 commit da665f8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/typescript/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WEBSOCKET_URL=ws://example.com/your/ws
16 changes: 16 additions & 0 deletions examples/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.3",
"declaration-bundler-webpack-plugin": "^1.0.3",
"dotenv": "^16.0.3",
"html-loader": "^4.2.0",
"html-webpack-plugin": "^5.5.0",
"style-loader": "^3.3.1",
"ts-loader": "^9.4.2",
"html-loader": "^4.2.0",
"typescript": "^4.9.5",
"webpack": "^5.76.1",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1",
"wepack-cli": "^0.0.1-security"
}
}
}
1 change: 1 addition & 0 deletions examples/typescript/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
require('dotenv').config({ path: './.env' });

module.exports = {
entry: {
Expand Down

0 comments on commit da665f8

Please sign in to comment.