Skip to content

Commit

Permalink
add excludeAssets to RelativeCiAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Apr 24, 2024
1 parent 46c634a commit 9b75b0e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/app/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,21 @@ const nextConfig = {
config.plugins = [...config.plugins, new PrismaPlugin()]
}
if (!dev && !isServer) {
config.plugins.push(new RelativeCiAgentWebpackPlugin())
config.plugins.push(
new RelativeCiAgentWebpackPlugin({
stats: { excludeAssets: [/.*\/webpack-stats\.json/, /build-manifest\.json/] },
})
)
config.plugins.push(
new StatsWriterPlugin({
filename: '../webpack-stats.json',
stats: {
assets: true,
chunks: true,
modules: true,
chunkModules: true,
excludeAssets: [/.*\/webpack-stats\.json/, /build-manifest\.json/],
},
excludeAssets: [/.*\/webpack-stats\.json/, /build-manifest\.json/],
transform: (webpackStats) => {
if (filterWebpackStats instanceof Function) {
const filteredSource = filterWebpackStats(webpackStats)
Expand Down

0 comments on commit 9b75b0e

Please sign in to comment.