Skip to content

Commit

Permalink
added overwrite of the bootstrap config and tested out some ways to h…
Browse files Browse the repository at this point in the history
…ave the roject site include bootstrap by default
  • Loading branch information
cedricdcc committed Feb 6, 2025
1 parent f951256 commit f843c95
Show file tree
Hide file tree
Showing 6 changed files with 9,163 additions and 9,020 deletions.
4 changes: 4 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");

module.exports = function override(config, env) {
config.entry = {
Expand All @@ -18,6 +19,9 @@ module.exports = function override(config, env) {
filename: "navigation.html",
chunks: ["navigation"],
}),
new CopyWebpackPlugin({
patterns: [{ from: "public/js", to: "js" }],
}),
];

return config;
Expand Down
93 changes: 93 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
]
},
"devDependencies": {
"copy-webpack-plugin": "^12.0.2",
"gh-pages": "^5.0.0",
"html-webpack-plugin": "^5.6.3",
"react-app-rewired": "^2.2.1"
Expand Down
1 change: 1 addition & 0 deletions public/navigation_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
</head>
<body>
<div id="navigation-root"></div>
<script src="./navigation.bundle.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/pages/homepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Homepage = (data) => {

return (
<div>
<Navigation data={landingPageData.Header} crates={landingPageData.Crates} profiles={landingPageData.Profiles} docs={landingPageData.Docs} books={landingPageData.Books}/>
<Navigation data={landingPageData.Header} crates={landingPageData.Crates} profiles={landingPageData.Profiles} books={landingPageData.Books}/>
<Header data={landingPageData.Header} />
<About data={landingPageData.Header} />
{
Expand Down
Loading

0 comments on commit f843c95

Please sign in to comment.