-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
2,529 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const printMessage = require("print-message"); | ||
|
||
printMessage( | ||
[ | ||
"To enable Razzle Bundle Analyzer create `razzle.config.js` file in root of your project", | ||
"and put this in it:", | ||
"", | ||
"module.exports = {", | ||
" plugins: ['bundle-analyzer']", | ||
"};", | ||
"", | ||
"then, add this script to your scripts in package.json:", | ||
"", | ||
"\"analyze\": \"BUNDLE_ANALYZE=true razzle build\"", | ||
"", | ||
"finnaly run analyze command with npm or yarn:", | ||
"`npm run analyze` or `yarn analyze`" | ||
], | ||
{ | ||
border: true, | ||
borderColor: "yellow", | ||
marginTop: 3, | ||
marginBottom: 3 | ||
} | ||
); |
Oops, something went wrong.