1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-29 09:18:26 +03:00
tabby/tabby-terminal/webpack.config.mjs
Eugene 1e5cfd1d4b
bootstrap 5 WIP (#7891)
New standard theme that follows your chosen terminal colors, Bootstrap 5 & Angular 15 upgrade
2023-02-26 20:42:31 +01:00

24 lines
573 B
JavaScript

import * as path from 'path'
import * as url from 'url'
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
import config from '../webpack.plugin.config.mjs'
export default () => {
const cfg = config({
name: 'terminal',
dirname: __dirname,
externals: [
'opentype.js',
],
rules: [
{
test: /lib[\\/]xterm-addon-image-worker.js$/i,
type: 'asset/source',
},
],
})
cfg.resolve.modules.push('node_modules/xterm/src')
return cfg
}