UNPKG

electron-webpack

Version:

> Because setting up `webpack` in the `electron` environment shouldn't be difficult.

57 lines (49 loc) 1.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; function _bluebirdLst() { const data = require("bluebird-lst"); _bluebirdLst = function () { return data; }; return data; } function _config() { const data = require("./config"); _config = function () { return data; }; return data; } function _default(_x) { return _ref.apply(this, arguments); } function _ref() { _ref = (0, _bluebirdLst().coroutine)(function* (context) { const electronWebpackConfig = yield (0, _config().getElectronWebpackConfiguration)(context); const distDir = electronWebpackConfig.commonDistDirectory; return { extraMetadata: { main: "main.js" }, files: [{ from: ".", filter: ["package.json"] }, { from: `${distDir}/main` }, { from: `${distDir}/renderer` }, { from: `${distDir}/renderer-dll` }], extraResources: [{ from: electronWebpackConfig.staticSourceDirectory, to: electronWebpackConfig.staticSourceDirectory }] }; }); return _ref.apply(this, arguments); } // __ts-babel@6.0.4 //# sourceMappingURL=electron-builder.js.map