|
||||
File indexing completed on 2025-01-18 09:16:07
0001 const path = require('path'); 0002 const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; 0003 0004 module.exports = { 0005 resolve: { 0006 alias: { 0007 //'three/examples/jsm/utils/BufferGeometryUtils': path.resolve('node_modules/three/examples/jsm/utils/BufferGeometryUtils.js'), 0008 // Add more aliases if there are other problematic imports 0009 } 0010 }, 0011 plugins: [ 0012 new BundleAnalyzerPlugin({ 0013 analyzerMode: 'static', // Generates a static HTML file with a treemap. 0014 reportFilename: 'bundle-report.html', // Can be opened in a browser after build. 0015 openAnalyzer: false, // Prevents the report from automatically opening. 0016 generateStatsFile: true//, // Generates a stats.json. 0017 //statsFilename: 'bundle-stats.json' // Useful for custom analysis. 0018 }) 0019 ] 0020 };
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |