-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to include environment variables when deploying in github
- Loading branch information
Showing
1 changed file
with
7 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,9 @@ | ||
// const Dotenv = require('dotenv-webpack'); | ||
|
||
// const webpack = require('webpack'); | ||
// const { merge } = require('webpack-merge'); | ||
// const AngularWebpackPlugin = require('@ngtools/webpack').AngularWebpackPlugin; | ||
// const path = require('path'); | ||
const Dotenv = require('dotenv-webpack') | ||
const Dotenv = require('dotenv-webpack'); | ||
|
||
module.exports = { | ||
plugins: [ | ||
new Dotenv() | ||
] | ||
} | ||
|
||
// module.exports = (config) => { | ||
// return merge(config, { | ||
// plugins: [ | ||
// new webpack.DefinePlugin({ | ||
// 'process.env': JSON.stringify({ | ||
// SOME_ENV_VARIABLE: 'your_value_here' | ||
// }) | ||
// }) | ||
// ] | ||
// }); | ||
// }; | ||
plugins: [ | ||
new Dotenv({ | ||
systemvars: true, //Set to true if you would rather load all system variables as well (useful for CI purposes) | ||
}) | ||
] | ||
}; |