A starter boilerplate to use for quick templating using Webpack 5, SCSS, Linting, Hot reloading and more... Personal small reusable 'library' of common styles.
- Webpack 5
- SCSS
- Modern ES6+ with Babel
- Linting
- Hot reload on dev
yarn
oryarn install
from the root folder.- You should now have all the necessary dependencies to run the build process.
For local development there's one more setup step needed:
- Go to ./config/env.config.js and update the
HOST
value to match your local development hostname. Example:
HOST: 'https://stater-foxy-mojo.test'
You should now be able to run the project:
npm run start
Production assets are compiled to build/
folder. The src/
folder should not be uploaded to production environment.
npm run build
Abstracts
: Variables, functions, mixins, helpers. A good way to see this is, it should not print out any CSS code if compiled on it's own.Base
: Settings, tools and helpers. Contains global styles, normalizers and utility classes.Blocks
: Styles specific to blocks like the header, footer, or any full width section.Components
: Styles specific to components like buttons, tooltips, and other small stand-alone reusable pieces.Layout
: For things specific to the website's layout and formatting, global styles. Things specific to the theme either in FE or admin.Pages
: Styles specific to pages like the home pageHelpers
: Overrides to colors classes and spacings, etc.
If you're here it's as part of a team. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request