silverwolf-x's picture
download
raw
901 Bytes
const { StatsWriterPlugin } = require('webpack-stats-plugin')
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
module.exports = {
experimental: {
appDir: true,
},
webpack: (config, options) => {
const { nextRuntime = 'client' } = options
if (process.env.ANALYZE) {
if (nextRuntime === 'edge')
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: true,
reportFilename: options.isServer
? '../analyze/server.html'
: './analyze/client.html',
})
)
config.plugins.push(
new StatsWriterPlugin({
filename: `../webpack-stats-${nextRuntime}.json`,
stats: {
assets: true,
chunks: true,
modules: true,
},
})
)
}
return config
},
}

Xet Storage Details

Size:
901 Bytes
·
Xet hash:
d12194c85f5c9940e7f6f8f2ea26927a12b8dc3256ab64334f6a75b95a2bfe28

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.