Meriadec Pillet
7 years ago
committed by
GitHub
8 changed files with 90 additions and 40 deletions
@ -1,13 +1,13 @@ |
|||||
require('dotenv').config() |
|
||||
const webpack = require('webpack') |
const webpack = require('webpack') |
||||
|
const Dotenv = require('dotenv-webpack') |
||||
|
|
||||
require('../src/globals') |
require('../src/globals') |
||||
|
|
||||
module.exports = [ |
module.exports = [ |
||||
|
new Dotenv(), |
||||
new webpack.DefinePlugin({ |
new webpack.DefinePlugin({ |
||||
__DEV__, |
__DEV__, |
||||
__PROD__, |
__PROD__, |
||||
__SENTRY_URL__: JSON.stringify(process.env.SENTRY_URL), |
|
||||
'process.env.NODE_ENV': JSON.stringify(__ENV__), |
'process.env.NODE_ENV': JSON.stringify(__ENV__), |
||||
}), |
}), |
||||
] |
] |
||||
|
Loading…
Reference in new issue