Front-end boilerplate
$ git clone https://github.com/AsyrafHussin/frontend-boilerplate.git <project-name>
$ cd <project-name>
$ rm -rf ./.git && rm -rf ./README.md
$ npm install
$ npm run dev
Using http-server
- Install
$ npm install -g http-server
- Serve
$ http-server ./ -p 8000
- Serve using npm
$ npm run serve
List all available command
Command | Description |
---|---|
npm run dev npm run development |
Run all Mix tasks |
npm run watch | Watch all files for changes and recompile |
npm run watch-poll | If Webpack isn't updating when your files change |
npm run prod npm run production |
Run all Mix tasks and minify output |
npm run serve | Serving project at http://127.0.0.1:8000 |
If you spot any errors, typos or missing information, please submit a pull request.