mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-25 22:55:55 -05:00
5727adf3df
* Various settings in settings-nvr.js module * settings-nvr-local.js can override settings-nvr.js * settings-nvr-local is unchecked file * Both files can be straight maps, or functions returning maps * webpack env and args available to those functions
38 lines
961 B
JavaScript
38 lines
961 B
JavaScript
// vim: set et ts=2 sw=2:
|
|
//
|
|
|
|
/**
|
|
* This module must export a map, but can use a function with no arguments
|
|
* that returns a map, or a function that receives the "env" and "args"
|
|
* values from webpack.
|
|
*
|
|
* @type {Object}
|
|
*/
|
|
module.exports.settings = {
|
|
// Project related: use ./ in front of project root relative files!
|
|
app_src_dir: './ui-src',
|
|
dist_dir: './ui-dist',
|
|
|
|
// App related
|
|
app_title: 'Moonfire NVR',
|
|
|
|
// Where is the server to be found
|
|
moonfire: {
|
|
server: 'localhost',
|
|
port: 8080,
|
|
},
|
|
|
|
/*
|
|
* In settings override file you can add sections like below on this level.
|
|
* After processing, anything defined in mode.production or mode.development,
|
|
* as appropriate based on --mode argument to webpack, will be merged
|
|
* into the top level of this settings module. This allows you to add to, or
|
|
* override anything listed above.
|
|
*
|
|
* webpack_mode: {
|
|
* production: {},
|
|
* development: {},
|
|
},
|
|
*/
|
|
};
|