-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.js
More file actions
17 lines (16 loc) · 711 Bytes
/
config.js
File metadata and controls
17 lines (16 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const path = require('path');
const production = process.env.NODE_ENV === 'production';
module.exports = {
port: {
front: 8080, // port for devServer
},
entry: {
front: path.resolve(__dirname, 'src/index.js'), // entrypoint for front js file
},
contentBase: path.resolve(__dirname, 'src'), // url path for static files
devtool: production ? false : 'eval-cheap-module-source-map',
componentsPath: path.resolve(__dirname, 'src/components'), // path for components (aliases)
routesPath: path.resolve(__dirname, 'src/routes'),
staticPath: path.resolve(__dirname, 'src'), // path for static files (aliases)
template: './src/index.html' // path of template
}