bundle size opt

This commit is contained in:
Eugene Pankov
2021-04-08 22:26:47 +02:00
parent 50b1fb2410
commit 8bfc86e623
12 changed files with 178 additions and 103 deletions

View File

@@ -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/*'))