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: jscomp/bsb/templates/react/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,3 +20,5 @@ npm run webpack:production
20
20
```
21
21
22
22
This will replace the development artifact `build/Index.js` for an optimized version.
23
+
24
+
**To enable dead code elimination**, change `bsconfig.json`'s `package-specs``module` from `"commonjs"` to `"es6"`. Then re-run the above 2 commands. This will allow Webpack to remove unused code.
0 commit comments