UNPKG

@zohodesk/client_build_tool

Version:

A CLI tool to build web applications and client libraries

31 lines (23 loc) 770 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.configMurphyInjectorPlugin = configMurphyInjectorPlugin; var _constants = require("../../../constants"); var _MurphyInjectorPlugin = _interopRequireDefault(require("../custom_plugins/MurphyInjectorPlugin")); var _path = _interopRequireDefault(require("path")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function configMurphyInjectorPlugin(options) { const { enable, chunkName, filePath } = options.murphyBootstrapHtml; if (enable) { return new _MurphyInjectorPlugin.default([{ name: chunkName, file: _path.default.join(_constants.appPath, filePath) }], options); } return null; }