18 Star 137 Fork 62

Gitee 极速下载/scratch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/LLK/scratch-desktop
克隆/下载
webpack.main.js 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
Kaloyan Manolov 提交于 2个月前 . fix: lint errors
const path = require('path');
const makeConfig = require('./webpack.makeConfig.js');
module.exports = makeConfig(
{
target: 'electron-main',
entry: {
main: './src/main/index.js'
},
context: path.resolve(__dirname),
externals: [
'source-map-support',
'electron',
'webpack',
'webpack/hot/log-apply-result',
'electron-webpack/out/electron-main-hmr/HmrClient',
'source-map-support/source-map-support.js'
],
output: {
filename: '[name].js',
chunkFilename: '[name].bundle.js',
assetModuleFilename: 'static/assets/[name].[hash][ext]',
libraryTarget: 'commonjs2',
path: path.resolve(__dirname, 'dist/main')
},
module: {rules: []},
node: {__dirname: false, __filename: false}
},
{
name: 'main',
useReact: false,
disableDefaultRulesForExtensions: ['js'],
babelPaths: [
path.resolve(__dirname, 'src', 'main')
]
}
);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/scratch.git
git@gitee.com:mirrors/scratch.git
mirrors
scratch
scratch
develop

搜索帮助