generated from DonAdam2/webpack-react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.js
28 lines (27 loc) · 813 Bytes
/
constants.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
const protocol = process.env.HTTPS?.trim() === 'true' ? 'https' : 'http',
openInBrowser = process.env.BROWSER?.trim() !== 'none';
module.exports = {
port: 3000,
protocol,
devServer: `${protocol}://localhost`,
openInBrowser,
jestDirectory: 'jest',
rootDirectory: 'src',
buildToolsDirectory: 'buildTools',
publicDirectory: 'public',
outputDirectory: 'dist',
environmentsDirectory: 'environments',
jsSubDirectory: 'js/',
cssSubDirectory: 'css/',
isCssModules: false,
metaInfo: {
//displayed in search engines at the top of URL
siteName: 'App site name',
//max 60 (recommended)
title: 'App title',
//max 150 (recommended)
description: 'description',
keywords: 'add you keywords',
twitterCardType: 'summary', //summary - summary_large_image - app
},
};