A boilerplate for creating HTML+CSS+JS projects with development server and SASS/SCSS preprocessor.
-
Create a new repository on Github and save github directions for starting work with the new repository
-
Clone this template project to your new local project folder:
git clone <https://github.com/this-repo-url.git> <path/to/your/new-project-folder-name> -
Delete the hidden
.gitfolder from the root directory of the cloned repository -
Specify the title of your app inside the
titletag of thesrc/index.htmlfile:<title>Your app title</title> -
Specify the name and the version of your project in the
package.jsonsettings:{ "name": "new-project-name", "version": "1.0.0", ... } -
To add a favicon in the
webpack.config.jsuncomment a line with the HtmlWebpackPlugin'sfaviconproperty and specify the path to where your favicon file is in its value:module.exports = { ... plugins: [ ... new HtmlWebpackPlugin({ favicon: './path/to/your-favicon-file.png', ... }), ... ], ... } -
Install dependencies using npm:
npm install -
Add information about your project here in the README.md
-
Push the repository to Github in accordance with directions for starting work given in the first step.
Starts the project in development mode.
Builds the app for production to the dist folder.
Tools used for handy development:
-
Webpack v5 with loaders and plugins:
-
Babel with polyfills and "preset-env" preset
-
Note: to use autoformatting with Prettier please make sure that Prettier is installed and configured as a default formatter in your IDE.