-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.prod.js
46 lines (45 loc) · 1.59 KB
/
webpack.prod.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const { merge } = require('webpack-merge');
const { DefinePlugin } = require('webpack');
const common = require('./webpack.common.js');
module.exports = merge(common, {
mode: 'production',
plugins: [
new DefinePlugin({
process: {
env: {
NODE_ENV: JSON.stringify('production'),
REACT_APP_FIREBASE_API_KEY: JSON.stringify(
process.env.REACT_APP_FIREBASE_API_KEY,
),
REACT_APP_FIREBASE_AUTH_DOMAIN: JSON.stringify(
process.env.REACT_APP_FIREBASE_AUTH_DOMAIN,
),
REACT_APP_FIREBASE_DATABASE_URL: JSON.stringify(
process.env.REACT_APP_FIREBASE_DATABASE_URL,
),
REACT_APP_FIREBASE_PROJECT_ID: JSON.stringify(
process.env.REACT_APP_FIREBASE_PROJECT_ID,
),
REACT_APP_FIREBASE_STORAGE_BUCKET: JSON.stringify(
process.env.REACT_APP_FIREBASE_STORAGE_BUCKET,
),
REACT_APP_FIREBASE_MESSAGING_SENDER_ID: JSON.stringify(
process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID,
),
REACT_APP_FIREBASE_APP_ID: JSON.stringify(
process.env.REACT_APP_FIREBASE_APP_ID,
),
REACT_APP_FIREBASE_MEASUREMENT_ID: JSON.stringify(
process.env.REACT_APP_FIREBASE_MEASUREMENT_ID,
),
REACT_APP_FIREBASE_FUNCTIONS_ROUTE_PROD: JSON.stringify(
process.env.REACT_APP_FIREBASE_FUNCTIONS_ROUTE_PROD,
),
REACT_APP_PROD_ORIGIN: JSON.stringify(
process.env.REACT_APP_PROD_ORIGIN,
),
},
},
}),
],
});