How to use @microsoft/gulp-core-build-serve - 1 common examples

To help you get started, we’ve selected a few @microsoft/gulp-core-build-serve 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 koltyakov / sp-rest-proxy / examples / spfx-proxy-example / proxy.js View on Github external
const CertStore = require('@microsoft/gulp-core-build-serve/lib/CertificateStore');
const RestProxy = require('sp-rest-proxy');

const CertificateStore = CertStore.CertificateStore || CertStore.default;

const settings = {
  configPath: './config/private.json',
  port: 4323,
  protocol: 'https',
  ssl: {
    cert: CertificateStore.instance.certificateData,
    key: CertificateStore.instance.keyData
  }
};

const restProxy = new RestProxy(settings);
restProxy.serve();

@microsoft/gulp-core-build-serve

`gulp-core-build-serve` is a `gulp-core-build` subtask for testing/serving web content on the localhost, and live reloading it when things change.

MIT
Latest version published 2 months ago

Package Health Score

72 / 100
Full package analysis

Popular @microsoft/gulp-core-build-serve functions

Similar packages