UNPKG

@sap/cds

Version:

SAP Cloud Application Programming Model - CDS for Node.js

10 lines (7 loc) 339 B
// Connects to a live reload server started by cds watch const cds = require('../../lib') const { livereload: config } = cds.env if (config && config.path && config.url) { const liveReload = require(config.path) // path to connect-livereload, set by cds watch cds.on ('bootstrap', app => app.use (liveReload({ src: config.url }))) }