2020-03-04 03:22:13 +03:00
|
|
|
module.exports = {
|
|
|
|
resolve: {
|
2023-04-07 01:08:54 +03:00
|
|
|
extensions: ['.js', '.ts', '.tsx'] // .js is necessary for transitive imports
|
2020-03-04 03:22:13 +03:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.s?css$/,
|
|
|
|
use: ['style-loader', 'css-loader', 'sass-loader']
|
|
|
|
},
|
|
|
|
{ test: /\.png$/, use: 'url-loader' },
|
|
|
|
{ test: /\.woff$/, use: 'url-loader' },
|
|
|
|
]
|
|
|
|
},
|
2020-03-19 02:09:59 +03:00
|
|
|
performance: {
|
|
|
|
// azure-devops-ui is the majority of the payload
|
|
|
|
// and is needed on boot (thus cannot be lazy loaded).
|
|
|
|
maxAssetSize: 820 * 1024,
|
|
|
|
maxEntrypointSize: 820 * 1024,
|
|
|
|
},
|
2021-06-08 23:42:42 +03:00
|
|
|
stats: 'minimal', // If left on will disrupt `webpack --profile`.
|
2020-03-04 03:22:13 +03:00
|
|
|
}
|