UNPKG

react-csp

Version:

A npm package/plugin that generate Content Security Policy for create-react-app without eject or rewired.

21 lines 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var filename = "index.html"; exports.filename = filename; var args = process.argv.slice(2); args.forEach(function (value, index) { if (value === '--filename' || value === '--f') { if (args[index + 1]) { exports.filename = filename = args[index + 1]; } } }); var baseDir = process.cwd(); exports.baseDir = baseDir; var configPath = function (extension) { return process.cwd() + ("/csp." + extension); }; exports.configPath = configPath; var htmlPath = process.cwd() + ("/public/" + filename); exports.htmlPath = htmlPath; //# sourceMappingURL=constants.js.map