mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-04 18:37:45 +01:00
Set env with EnvironmentPlugin (#1097)
* Set env with EnvironmentPlugin * Remove stringify EnvironmentPlugin applies stringify itself.
This commit is contained in:
parent
a73cbbb672
commit
686c0e854f
@ -137,14 +137,12 @@ const plugins = [
|
|||||||
filename: '[name].[hash].css',
|
filename: '[name].[hash].css',
|
||||||
chunkFilename: '[id].[hash].css',
|
chunkFilename: '[id].[hash].css',
|
||||||
}),
|
}),
|
||||||
new webpack.DefinePlugin({
|
new webpack.EnvironmentPlugin({
|
||||||
'process.env': {
|
'ENV': ENV,
|
||||||
'ENV': JSON.stringify(ENV),
|
|
||||||
'NODE_ENV': NODE_ENV === 'production' ? 'production' : 'development',
|
'NODE_ENV': NODE_ENV === 'production' ? 'production' : 'development',
|
||||||
'SELF_HOST': JSON.stringify(process.env.SELF_HOST === 'true' ? true : false),
|
'SELF_HOST': process.env.SELF_HOST === 'true' ? true : false,
|
||||||
'APPLICATION_VERSION': JSON.stringify(pjson.version),
|
'APPLICATION_VERSION': pjson.version,
|
||||||
'CACHE_TAG': JSON.stringify(Math.random().toString(36).substring(7)),
|
'CACHE_TAG': Math.random().toString(36).substring(7),
|
||||||
}
|
|
||||||
}),
|
}),
|
||||||
new AngularCompilerPlugin({
|
new AngularCompilerPlugin({
|
||||||
tsConfigPath: 'tsconfig.json',
|
tsConfigPath: 'tsconfig.json',
|
||||||
|
Loading…
Reference in New Issue
Block a user