1
1
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:
Eugene Pankov 2019-07-04 11:34:31 +02:00
parent 0bd1700872
commit f5485fae2f
7 changed files with 360 additions and 360 deletions

View File

@ -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/,

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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-/,
] ],
} }

View File

@ -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',