docusaurus: Css is not loading properly in build
š Bug Report
I want to deploy the build folder, but the build folder css is all messed up. The pages has no styling. When Iām running in development
mode the pages are loading fine, but in build
mode, pages are not loading properly. Please see attached photos
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
- Clone the repo
git clone https://github.com/react-native-bootstrap/react-native-bootstrap
- cd into website folder
cd website
- Start development server and see website is working fine
yarn start
- Not build the static website & open
index.html
in build folderyarn build
Expected behavior
The website should have looked like this
Running index.html
file from build folder should have worked fine, so that I can deploy it on github pages
Actual Behavior
Website looks like this after deploying build folder in gh-pages
Your Environment
- Docusaurus version used: 2.0.0-alpha.56
- Firefox 76.0.1 (64-bit)
- Node.js v10.15.3
- Operating system and version (desktop or mobile): Ubuntu 18.04
Reproducible Demo
The entire code is present here https://github.com/react-native-bootstrap/react-native-bootstrap/tree/master/website
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (4 by maintainers)
You need a CNAME file as well in
static
with the contentsreact-native-boostrap.io
.This is not a Docusaurus problem, so Iām closing this.
Hi @sanjeevyadavIT ,
I have the same issue as you, Have you got any solution to it?
Also Just want to know, After running
yarn build
can we run a static website through a browser without running any server?