Skip to content

Commit

Permalink
[fix] don't setup DLL if assets is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Oct 29, 2020
1 parent 4ddc1a5 commit 1989fdf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/xarc-webpack/src/partials/dll-load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1989fdf

Please sign in to comment.