diff --git a/packages/xarc-webpack/src/partials/dll-load.ts b/packages/xarc-webpack/src/partials/dll-load.ts index 00d5fd406..278330365 100644 --- a/packages/xarc-webpack/src/partials/dll-load.ts +++ b/packages/xarc-webpack/src/partials/dll-load.ts @@ -20,10 +20,16 @@ import * as webpack from "webpack"; const DonePlugin = require("../plugins/done-plugin"); const dllUtil = require("../util/dll-util"); +const _ = require("lodash"); module.exports = function() { const dll = dllUtil.loadAssets(); + // no DLL + if (_.isEmpty(dll.assets)) { + return {}; + } + // dev mode? if (process.env.WEBPACK_DEV === "true") { dllUtil.updateDllAssetsForDev(dll.assets);