This is the source code for my personal website.
To use this project, you will need NodeJS installed on your machine.
Inside the directory, run
$ npm install
You may encounter a warning like this:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
Just run npm audit fix
to fix them.
This will start the environment with file watching, browser synchronisation, auto-rebuild, js compilation, sass compilation, css injection, etc.
$ npm run start
Note that sometimes changing Pug include files or markdown files may not refresh the browser.
This will build your website in your ./dist
folder. You may change webpack configuration to get your ideal file structure.
$ npm run build