加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.main.config.js 728 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tobias Diez 提交于 2020-07-29 16:33 . Fix preferences dialog
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
// Main entry point: the file that runs in the main process
entry: './source/main.ts',
module: {
rules: require('./webpack.rules')
},
plugins: [
new CopyWebpackPlugin({
patterns: [
{ from: 'source/main/assets/tutorial', to: 'tutorial' },
{ from: 'source/main/assets/dict', to: 'dict' }
]
})
],
resolve: {
extensions: [ '.js', '.ts', '.jsx', '.tsx', '.css', '.json' ]
},
externals: {
// Do not embed fsevents (otherwise this leads to problems on Linux and Windows, see https://github.com/paulmillr/chokidar/issues/618#issuecomment-392618390)
'fsevents': "require('fsevents')"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化