Simple frontend boilerplate to build web projects easily.
You must have Node.js installed on your system.
-
Clone the boilerplate to your local machine.
$ git clone https://github.com/mariusjagminas/html-sass-webpack-boilerplate.git
-
Navigate to
html-sass-webpack-boilerplate
folder. -
Install all dependencies.
$ npm install
Start a development server.
$ npm start
The development server will open the browser automatically and you should see your site live.
The development file should be placed in a folder according to its type.
src
|
├── assets // Images, fonts and icons.
|
├── js // All JavaScript files.
|
├── styles // SASS, CSS files.
|
└── templates // HTML files.
$ npm run build
The files ready to upload to server will be found in dist/
folder.
Now files from dist
folder can be served on the local network by the local server.
$ npm run serve
$ npm run format
The development files in src/
folder will be formatted with Prettier