代码拉取完成,页面将自动刷新
/* eslint-disable */
const {
getConfig,
applyEntries,
getBaseConfig,
} = require('./webpack.config.base');
const { join } = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
/* eslint-enable */
const PORT = 4444;
const appConfig = getConfig(getBaseConfig('app'), {
target: 'electron-renderer',
devServer: {
contentBase: join(__dirname, 'build'),
port: PORT,
hot: true,
inline: true,
disableHostCheck: true,
},
});
const extPopupConfig = getConfig({
target: 'electron-renderer',
entry: {},
output: {},
devServer: {
contentBase: join(__dirname, 'build'),
port: PORT,
hot: true,
inline: true,
disableHostCheck: true,
},
});
applyEntries('app', appConfig, [
...(process.env.ENABLE_AUTOFILL ? ['form-fill', 'credentials'] : []),
'app',
'permissions',
'auth',
'find',
'menu',
'search',
'preview',
'tabgroup',
'downloads-dialog',
'add-bookmark',
'zoom',
]);
if (process.env.ENABLE_EXTENSIONS) {
extPopupConfig.entry['extension-popup'] = [
`./src/renderer/views/extension-popup`,
];
extPopupConfig.plugins.push(
new HtmlWebpackPlugin({
title: 'Wexond',
template: 'static/pages/extension-popup.html',
filename: `extension-popup.html`,
chunks: [`vendor.app`, 'extension-popup'],
}),
);
module.exports = [appConfig, extPopupConfig];
} else {
module.exports = appConfig;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。