Remove asar external from production
This commit is contained in:
parent
83fbab63c0
commit
10ff740f75
|
@ -15,7 +15,6 @@ import { ClientLogger as Logger, ClientIPC, Utils, Axi } from 'common';
|
||||||
import { BuiltinManager, EmoteModule, ReactDevtoolsModule, VueDevtoolsModule, TrackingProtection, E2EE } from 'builtin';
|
import { BuiltinManager, EmoteModule, ReactDevtoolsModule, VueDevtoolsModule, TrackingProtection, E2EE } from 'builtin';
|
||||||
import electron from 'electron';
|
import electron from 'electron';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { setTimeout } from 'timers';
|
|
||||||
|
|
||||||
const tests = typeof PRODUCTION === 'undefined';
|
const tests = typeof PRODUCTION === 'undefined';
|
||||||
const ignoreExternal = tests && true;
|
const ignoreExternal = tests && true;
|
||||||
|
|
|
@ -28,7 +28,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
externals: {
|
externals: {
|
||||||
electron: 'require("electron")',
|
electron: 'require("electron")',
|
||||||
asar: 'require("asar")',
|
|
||||||
fs: 'require("fs")',
|
fs: 'require("fs")',
|
||||||
path: 'require("path")',
|
path: 'require("path")',
|
||||||
util: 'require("util")',
|
util: 'require("util")',
|
||||||
|
|
|
@ -13,7 +13,10 @@ const config = {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.NamedModulesPlugin()
|
new webpack.NamedModulesPlugin()
|
||||||
]
|
],
|
||||||
|
externals: {
|
||||||
|
asar: 'require("asar")'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = merge(baseconfig, config);
|
module.exports = merge(baseconfig, config);
|
||||||
|
|
|
@ -15,7 +15,10 @@ const config = {
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
PRODUCTION: JSON.stringify(true)
|
PRODUCTION: JSON.stringify(true)
|
||||||
})
|
})
|
||||||
]
|
],
|
||||||
|
externals: {
|
||||||
|
sparkplug: 'require("./sparkplug")'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = merge(baseconfig, config);
|
module.exports = merge(baseconfig, config);
|
||||||
|
|
Loading…
Reference in New Issue