How to use the oc-client-browser.getMap function in oc-client-browser

To help you get started, we’ve selected a few oc-client-browser 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 opencomponents / oc / tasks / build.js View on Github external
log['error'](err);
  }

  ocClientPackageInfo.version = ocVersion;
  fs.writeJsonSync(
    path.join(__dirname, clientComponentDir, 'package.json'),
    ocClientPackageInfo,
    { spaces: 2 }
  );

  fs.writeFileSync(
    path.join(__dirname, clientComponentDir, 'src/oc-client.min.js'),
    libContent
  );

  ocClientBrowser.getMap((err, mapContent) => {
    if (err) {
      log['error'](err);
    }
    fs.writeFileSync(
      path.join(__dirname, clientComponentDir, 'src/oc-client.min.map'),
      mapContent
    );

    const Local = require('../src/cli/domain/local');
    const local = new Local();
    const packageOptions = {
      componentPath: path.join(__dirname, clientComponentDir),
      production: true,
      verbose: false
    };

oc-client-browser

OC browser client

MIT
Latest version published 1 month ago

Package Health Score

70 / 100
Full package analysis

Popular oc-client-browser functions