UNPKG

bridebook-ui-library

Version:
23 lines (18 loc) 718 B
var nconf = require('nconf'); // Specifying an env delimiter allows you to override below config when shipping to production server // by e.g. defining piping__ignore or version variables. nconf.env('__'); var config = { piping: { // Ignore webpack custom loaders on server. TODO: Reuse index.js config. ignore: /(\/\.|~$|\.(css|less|sass|scss|styl))/, // Hook ensures always fresh server response even for client file change. hook: true }, port: process.env.PORT || 3000 }; // Use above config as a default one // Multiple other providers are available like loading config from json and more // Check out nconf docs for fancier examples nconf.defaults(config); module.exports = nconf.get();