mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-26 13:10:36 +03:00
webpack config formatting
This commit is contained in:
parent
0bd1700872
commit
f5485fae2f
@ -31,17 +31,17 @@ module.exports = {
|
|||||||
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
||||||
typeRoots: [
|
typeRoots: [
|
||||||
path.resolve(__dirname, 'node_modules/@types'),
|
path.resolve(__dirname, 'node_modules/@types'),
|
||||||
path.resolve(__dirname, '../node_modules/@types')
|
path.resolve(__dirname, '../node_modules/@types'),
|
||||||
],
|
],
|
||||||
paths: {
|
paths: {
|
||||||
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
||||||
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{ test: /[\\\/]schemes[\\\/]/, use: "raw-loader" },
|
{ test: /[\\\/]schemes[\\\/]/, use: "raw-loader" },
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
/^rxjs/,
|
/^rxjs/,
|
||||||
|
@ -32,14 +32,14 @@ module.exports = {
|
|||||||
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
||||||
typeRoots: [
|
typeRoots: [
|
||||||
path.resolve(__dirname, 'node_modules/@types'),
|
path.resolve(__dirname, 'node_modules/@types'),
|
||||||
path.resolve(__dirname, '../node_modules/@types')
|
path.resolve(__dirname, '../node_modules/@types'),
|
||||||
],
|
],
|
||||||
paths: {
|
paths: {
|
||||||
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
||||||
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
|
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
|
||||||
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
||||||
@ -47,7 +47,7 @@ module.exports = {
|
|||||||
{ test: /\.css$/, use: ['style-loader', 'css-loader'], exclude: /component\.css/ },
|
{ test: /\.css$/, use: ['style-loader', 'css-loader'], exclude: /component\.css/ },
|
||||||
{ test: /\.yaml$/, use: ['json-loader', 'yaml-loader'] },
|
{ test: /\.yaml$/, use: ['json-loader', 'yaml-loader'] },
|
||||||
{ test: /\.svg/, use: ['svg-inline-loader'] },
|
{ test: /\.svg/, use: ['svg-inline-loader'] },
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
'electron',
|
'electron',
|
||||||
|
@ -31,18 +31,18 @@ module.exports = {
|
|||||||
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
||||||
typeRoots: [
|
typeRoots: [
|
||||||
path.resolve(__dirname, 'node_modules/@types'),
|
path.resolve(__dirname, 'node_modules/@types'),
|
||||||
path.resolve(__dirname, '../node_modules/@types')
|
path.resolve(__dirname, '../node_modules/@types'),
|
||||||
],
|
],
|
||||||
paths: {
|
paths: {
|
||||||
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
||||||
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
|
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
|
||||||
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
'fs',
|
'fs',
|
||||||
|
@ -32,20 +32,20 @@ module.exports = {
|
|||||||
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
||||||
typeRoots: [
|
typeRoots: [
|
||||||
path.resolve(__dirname, 'node_modules/@types'),
|
path.resolve(__dirname, 'node_modules/@types'),
|
||||||
path.resolve(__dirname, '../node_modules/@types')
|
path.resolve(__dirname, '../node_modules/@types'),
|
||||||
],
|
],
|
||||||
paths: {
|
paths: {
|
||||||
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
||||||
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
|
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
|
||||||
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
||||||
{ test: /\.css$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
{ test: /\.css$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
||||||
{ test: /\.svg/, use: ['svg-inline-loader'] },
|
{ test: /\.svg/, use: ['svg-inline-loader'] },
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
'fs',
|
'fs',
|
||||||
|
@ -18,7 +18,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
|
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
|
||||||
extensions: ['.ts', '.js']
|
extensions: ['.ts', '.js'],
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
@ -30,19 +30,19 @@ module.exports = {
|
|||||||
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
||||||
typeRoots: [
|
typeRoots: [
|
||||||
path.resolve(__dirname, 'node_modules/@types'),
|
path.resolve(__dirname, 'node_modules/@types'),
|
||||||
path.resolve(__dirname, '../node_modules/@types')
|
path.resolve(__dirname, '../node_modules/@types'),
|
||||||
],
|
],
|
||||||
paths: {
|
paths: {
|
||||||
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
||||||
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
"*": [path.resolve(__dirname, '../app/node_modules/*')],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
|
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
|
||||||
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
|
||||||
{ test: /\.svg/, use: ['svg-inline-loader'] },
|
{ test: /\.svg/, use: ['svg-inline-loader'] },
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
'fs',
|
'fs',
|
||||||
@ -54,5 +54,5 @@ module.exports = {
|
|||||||
/^@angular/,
|
/^@angular/,
|
||||||
/^@ng-bootstrap/,
|
/^@ng-bootstrap/,
|
||||||
/^terminus-/,
|
/^terminus-/,
|
||||||
]
|
],
|
||||||
}
|
}
|
||||||
|
@ -31,15 +31,15 @@ module.exports = {
|
|||||||
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
configFileName: path.resolve(__dirname, 'tsconfig.json'),
|
||||||
typeRoots: [
|
typeRoots: [
|
||||||
path.resolve(__dirname, 'node_modules/@types'),
|
path.resolve(__dirname, 'node_modules/@types'),
|
||||||
path.resolve(__dirname, '../node_modules/@types')
|
path.resolve(__dirname, '../node_modules/@types'),
|
||||||
],
|
],
|
||||||
paths: {
|
paths: {
|
||||||
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
|
||||||
"*": [
|
"*": [
|
||||||
path.resolve(__dirname, '../app/node_modules/*'),
|
path.resolve(__dirname, '../app/node_modules/*'),
|
||||||
path.resolve(__dirname, './node_modules/xterm/src/*')
|
path.resolve(__dirname, './node_modules/xterm/src/*'),
|
||||||
],
|
],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -53,10 +53,10 @@ module.exports = {
|
|||||||
loader: 'url-loader',
|
loader: 'url-loader',
|
||||||
options: {
|
options: {
|
||||||
limit: 999999999999,
|
limit: 999999999999,
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
]
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
'child_process',
|
'child_process',
|
||||||
|
Loading…
Reference in New Issue
Block a user