Repository URL to install this package:
|
Version:
3.1.3 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const webpack_1 = require("webpack");
const resolveToRoot_1 = require("../../../config/resolveToRoot");
const dllFileName = '__dev_vendor_dll__';
const distFolder = './dist/dist/bundled';
function inject(configName, config) {
// Install the vendor DLL plugin.
const manifestPath = resolveToRoot_1.resolveToRoot(`${distFolder}/${configName}/${dllFileName}.json`);
// eslint-disable-next-line
const manifest = require(manifestPath);
const plugin = new webpack_1.DllReferencePlugin({ manifest });
config.plugins.push(plugin);
}
exports.inject = inject;
//# sourceMappingURL=inject.js.map