mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-28 21:24:38 +00:00
Translation infrastructure
This commit is contained in:
@@ -47,6 +47,7 @@ module.exports = options => {
|
||||
alias: options.alias ?? {},
|
||||
modules: ['.', 'src', 'node_modules', '../app/node_modules', '../node_modules'].map(x => path.join(options.dirname, x)),
|
||||
extensions: ['.ts', '.js'],
|
||||
mainFields: ['esm2015', 'browser', 'module', 'main'],
|
||||
},
|
||||
ignoreWarnings: [/Failed to parse source map/],
|
||||
module: {
|
||||
@@ -89,6 +90,13 @@ module.exports = options => {
|
||||
test: /\.(ttf|eot|otf|woff|woff2|ogg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||
type: 'asset',
|
||||
},
|
||||
{
|
||||
test: /\.po$/,
|
||||
use: [
|
||||
{ loader: 'json-loader' },
|
||||
{ loader: 'po-gettext-loader' },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
externals: [
|
||||
|
Reference in New Issue
Block a user