https://github.com/xiaofan2406/xiaofan2406.github.io-fix-later
https://xiaofan2406.github.io
https://github.com/xiaofan2406/xiaofan2406.github.io-fix-later
Last synced: about 2 months ago
JSON representation
https://xiaofan2406.github.io
- Host: GitHub
- URL: https://github.com/xiaofan2406/xiaofan2406.github.io-fix-later
- Owner: xiaofan2406
- Created: 2016-10-18T03:01:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T05:53:40.000Z (about 4 years ago)
- Last Synced: 2025-02-23T08:07:59.977Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.34 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Portfolio
[](https://travis-ci.org/xiaofan2406/xiaofan2406.github.io) [](https://david-dm.org/xiaofan2406/xiaofan2406.github.io) [](https://david-dm.org/xiaofan2406/xiaofan2406.github.io?type=dev)
### Scripts
- Install dependencies
```
npm i
```
- Run dev server
```
npm run dev
```
- Push built files to github.io
```
npm run live
```
### Routing
- Because of using GitHub pages, has no control over server side routing. As a result, using hash to route.
- All sections live in `/` route, for easy migration on other hosts
### Details
- ##### CSS
using [`ExtractTextPlugin`](https://github.com/webpack/extract-text-webpack-plugin) to combine all css files into one
- ##### CSS Modules
NOT enabled
- ##### PostCSS
using [`cssnext`](http://cssnext.io/) and [`postcss-import`](https://github.com/postcss/postcss-import)
- ##### Hot Module Replacement
using [`react-hot-loader`](https://github.com/gaearon/react-hot-loader/tree/next)
- ##### Test production build
```
npm i -g pushstate-server
pushstate-server ./build 9000
```