mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
727 B
TypeScript
26 lines
727 B
TypeScript
import * as webpack from 'webpack';
|
|
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
|
|
|
|
const config: webpack.Configuration = {
|
|
plugins: [
|
|
new BundleAnalyzerPlugin(),
|
|
new BundleAnalyzerPlugin({
|
|
analyzerMode: 'static'
|
|
}),
|
|
new BundleAnalyzerPlugin({
|
|
analyzerMode: 'server',
|
|
analyzerHost: '127.0.0.1',
|
|
analyzerPort: 8888,
|
|
reportFilename: 'report.html',
|
|
defaultSizes: 'parsed',
|
|
openAnalyzer: true,
|
|
generateStatsFile: true,
|
|
statsFilename: 'stats.json',
|
|
statsOptions: {
|
|
source: false
|
|
},
|
|
logLevel: 'info'
|
|
})
|
|
]
|
|
};
|