How to use the @ui5/server.middleware function in @ui5/server

To help you get started, we’ve selected a few @ui5/server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / openui5 / grunt / config / connect.js View on Github external
var fs = require('fs');
var url = require('url');
var cspMiddleware = require('@ui5/server').middleware.csp;


module.exports = function(grunt, config) {

	// determine the testsuite name and lookup the sap.ui.core library
	// to be a bit more dynamic for the livereload middleware
	var testsuiteName = config.testsuite && config.testsuite.name || testsuiteName;
	var sapUiCoreBasePath = 'src/sap.ui.core';
	config.allLibraries.forEach(function(oLib, i) {
		if (oLib.name === 'sap.ui.core') {
			sapUiCoreBasePath = oLib.path;
		}
	});
	var sapUiTestsuiteBasePath = config.testsuite.path;
	var sapUiBuildtime = config.buildtime;

@ui5/server

UI5 Tooling - Server

Apache-2.0
Latest version published 2 months ago

Package Health Score

86 / 100
Full package analysis