a zip code crypto-currency system good for red ONLY

common-chunks-plugins.js 658B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var CommonChunksPlugin = require('webpack/lib/optimize/CommonsChunkPlugin');
  4. var Constants = require("../util/constants");
  5. var helpers_1 = require("../util/helpers");
  6. function getCommonChunksPlugin() {
  7. return new CommonChunksPlugin({
  8. name: 'vendor',
  9. minChunks: checkIfInNodeModules
  10. });
  11. }
  12. exports.getCommonChunksPlugin = getCommonChunksPlugin;
  13. function checkIfInNodeModules(webpackModule) {
  14. return webpackModule && webpackModule.userRequest && webpackModule.userRequest.startsWith(helpers_1.getStringPropertyValue(Constants.ENV_VAR_NODE_MODULES_DIR));
  15. }