Pietro Roaylty
npm init
npm install node-sass --save-dev
npm install bulma --save-dev
- Add scripts to
package.json
:"css-build": "node-sass --omit-source-map-url sass/styles.scss css/styles.css", "css-watch": "npm run css-build -- --watch", "start": "npm run css-watch"
- Run
[sudo] npm install -g http-server
to install HTTP Server globally. - Run
npm install
to install all dependencies.
- Bulma can be customized by adapting these variables.
- Run
npm run css-build
. - To watch for changes, launch
npm start
.
Run npm http-server -p 8080
or npx http-server -p 8080
without installing it globally.