-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
29 lines (27 loc) · 878 Bytes
/
config.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
const NODE_ENV = process.env.NODE_ENV || 'development';
require('dotenv').config({
path: `.env.${NODE_ENV}`,
});
module.exports = {
/** The environment to use when building the project */
env: NODE_ENV,
/** The full path to the project's root directory */
basePath: __dirname,
/** The name of the directory containing the application source code */
srcDir: 'src',
/** The entry points */
entryPoints: {
main: [
'./src/index.jsx',
],
},
/** Extract css in production - may want to disable for embedded apps */
extractText: false,
/** The name of the directory in which to emit compiled assets */
outDir: 'dist',
/** The base path for all projects assets (relative to the website root) */
publicPath: '/dev/',
/** host and port for dev server */
devHost: process.env.HOST || 'localhost',
devPort: process.env.PORT || 7000,
};