mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-11 03:41:55 +00:00
bundle size opt
This commit is contained in:
@@ -3,6 +3,10 @@ const config = require('../webpack.plugin.config')
|
||||
module.exports = config({
|
||||
name: 'terminal',
|
||||
dirname: __dirname,
|
||||
externals: [
|
||||
'hterm-umdjs',
|
||||
'opentype.js',
|
||||
],
|
||||
})
|
||||
module.exports.resolve.modules.push('node_modules/xterm/src')
|
||||
module.exports.module.rules.find(x => x.use.loader === 'awesome-typescript-loader').use.options.paths['*'].push(path.resolve(__dirname, './node_modules/xterm/src/*'))
|
||||
|
Reference in New Issue
Block a user