Official website of Mei Chu Hackathon 2017
$ node -v
v7.5.0
$ npm -v
5.3.0
$ webpack -v
2.5.0
Make sure you have webpack
and webpack-dev-server
installed globally. Currently we have a hard time building with [email protected]
. Please consider using [email protected]
for this project.
You may run below code:
npm i -g webpack
npm i -g [email protected]
Run npm i
to install depedencies for this project.
Run webpack-dev-server
to develop with livereload.
Run webpack -p
to build with optimization.
It will create new public
directory which is the built result.
In order to push the built website to gh-pages
- Change to gh-pages branch via
git checkout gh-pages
- Move all built website from
public/
to current directory viamv public/* ./
- Git commit & push to gh-pages as usual