You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ You can [read more about this over on Serverless Stack](https://serverless-stack
58
58
-[Support for pem, txt, and other raw files](#support-for-pem-txt-and-other-raw-files)
59
59
-[Externals](#externals)
60
60
-[Externals vs forceExclude](#externals-vs-forceexclude)
61
+
-[Generating a stats file](#generating-stats-files)
61
62
-[Support](#support)
62
63
-[Running Locally](#running-locally)
63
64
@@ -105,6 +106,7 @@ custom:
105
106
concurrency: 5 # Set desired concurrency, defaults to the number of available cores
106
107
stats: false # Don't print out any Webpack output
107
108
linting: true # Enable linting as a part of the build process
109
+
generateStatsFiles: false # Creates stats files that could be used for bundle analyzing, more below
108
110
esbuild: false # Use esbuild-loader instead of babel or ts for faster builds
109
111
disableForkTsChecker: false # Disable the ForkTsChecker plugin, more below
110
112
tsConfig: "tsconfig.json" # Path to your 'tsconfig.json', if it's not in the root
@@ -454,6 +456,12 @@ The three options (`externals`, `forceExclude`, and `excludeFiles`) look similar
454
456
455
457
These are a glob of files that can be excluded from the function resolution. This happens when you have multiple files that are in the same directory and Serverless Framework tries to use them as a function handler. For example, if you have a `index.js` and a `index.test.js` and your function is pointing to `index`, you'll get a warning saying, `WARNING: More than one matching handlers found for index. Using index.js`. To fix this, use `excludeFiles: **/*.test.js`.
456
458
459
+
### Generating stats files
460
+
461
+
Use the `generateStatsFiles` option if you want to analyze your bundle size. This option, if set to `true`, will
462
+
enable the generation of a `bundle_stats.json` and a `bundle_stats.html` in the output directory, using the
0 commit comments