fix electron and update sdk
This commit is contained in:
parent
908f18d4cd
commit
559987c5c7
4 changed files with 9 additions and 6 deletions
|
@ -204,7 +204,7 @@
|
||||||
"yarn": "^1.3"
|
"yarn": "^1.3"
|
||||||
},
|
},
|
||||||
"lbrySettings": {
|
"lbrySettings": {
|
||||||
"lbrynetDaemonVersion": "0.40.1",
|
"lbrynetDaemonVersion": "0.42.0",
|
||||||
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip",
|
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip",
|
||||||
"lbrynetDaemonDir": "static/daemon",
|
"lbrynetDaemonDir": "static/daemon",
|
||||||
"lbrynetDaemonFileName": "lbrynet"
|
"lbrynetDaemonFileName": "lbrynet"
|
||||||
|
|
|
@ -106,9 +106,6 @@ let baseConfig = {
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||||
new webpack.EnvironmentPlugin(['NODE_ENV']),
|
new webpack.EnvironmentPlugin(['NODE_ENV']),
|
||||||
new ProvidePlugin({
|
|
||||||
__: ['i18n.js', '__'],
|
|
||||||
}),
|
|
||||||
new DefinePlugin({
|
new DefinePlugin({
|
||||||
__static: `"${path.join(__dirname, 'static').replace(/\\/g, '\\\\')}"`,
|
__static: `"${path.join(__dirname, 'static').replace(/\\/g, '\\\\')}"`,
|
||||||
'process.env.NODE_ENV': JSON.stringify(NODE_ENV),
|
'process.env.NODE_ENV': JSON.stringify(NODE_ENV),
|
||||||
|
|
|
@ -4,7 +4,7 @@ const webpack = require('webpack');
|
||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
const baseConfig = require('./webpack.base.config.js');
|
const baseConfig = require('./webpack.base.config.js');
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const { DefinePlugin } = require('webpack');
|
const { DefinePlugin, ProvidePlugin } = require('webpack');
|
||||||
const { getIfUtils, removeEmpty } = require('webpack-config-utils');
|
const { getIfUtils, removeEmpty } = require('webpack-config-utils');
|
||||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||||
|
|
||||||
|
@ -111,6 +111,9 @@ const renderConfig = {
|
||||||
new DefinePlugin({
|
new DefinePlugin({
|
||||||
IS_WEB: JSON.stringify(false),
|
IS_WEB: JSON.stringify(false),
|
||||||
}),
|
}),
|
||||||
|
new ProvidePlugin({
|
||||||
|
__: ['i18n.js', '__'],
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ const path = require('path');
|
||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
const baseConfig = require('./webpack.base.config.js');
|
const baseConfig = require('./webpack.base.config.js');
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const { DefinePlugin } = require('webpack');
|
const { DefinePlugin, ProvidePlugin } = require('webpack');
|
||||||
|
|
||||||
const STATIC_ROOT = path.resolve(__dirname, 'static/');
|
const STATIC_ROOT = path.resolve(__dirname, 'static/');
|
||||||
const DIST_ROOT = path.resolve(__dirname, 'dist/');
|
const DIST_ROOT = path.resolve(__dirname, 'dist/');
|
||||||
|
@ -70,6 +70,9 @@ const webConfig = {
|
||||||
new DefinePlugin({
|
new DefinePlugin({
|
||||||
IS_WEB: JSON.stringify(true),
|
IS_WEB: JSON.stringify(true),
|
||||||
}),
|
}),
|
||||||
|
new ProvidePlugin({
|
||||||
|
__: ['i18n.js', '__'],
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue