qlik-oss/sn-scatter-plot

View on GitHub
nebula.config.js

Summary

Maintainability
A
0 mins
Test Coverage
const path = require('path');
const crypto = require('crypto');

const { name, version } = require(path.resolve(__dirname, './package.json')); // eslint-disable-line

const versionHash = crypto.createHash('md5').update(`${name}@${version}`).digest('hex').slice(0, 4);

const replacementStrings = {
  'process.env.VERSION_HASH': JSON.stringify(versionHash),
  'process.env.PACKAGE_VERSION': JSON.stringify(version),
};

module.exports = {
  build: {
    replacementStrings,
  },
  serve: {
    flags: {
      panZoom: true,
      CLIENT_IM_3050: true,
      IM_5791_SVG_LABEL_RENDERING: true,
    },
  },
};