Webpack Markup Starter is a development setup for building websites with HTML, SCSS and JavaScript.
- webpack (module bundler)
- webpack-cli (command line interface for webpack)
- webpack-dev-server (development server with live reload)
- html-webpack-plugin (automatic HTML page generation)
- mini-css-extract-plugin (extracts CSS into separate files for production)
- copy-webpack-plugin (copies static assets like images and fonts)
- image-minimizer-webpack-plugin + sharp (image optimization)
- terser-webpack-plugin (JavaScript minification)
- babel-loader (transpiles modern JavaScript)
- @babel/core (Babel core engine)
- @babel/preset-env (modern JavaScript support for browsers)
- core-js (polyfills for older browsers)
- sass (SCSS compiler)
- sass-loader (integrates SCSS with webpack)
- css-loader (resolves CSS imports)
- style-loader (injects CSS into DOM in development)
- postcss-loader (processes CSS with PostCSS)
- autoprefixer (adds vendor prefixes to CSS)
- cssnano (CSS optimization and minification)
- postcss-sort-media-queries (sorts media queries)
- eslint (JavaScript linting)
- eslint-webpack-plugin (runs ESLint during build)
- eslint-config-prettier (disables conflicting ESLint rules)
src/
├── fonts/ # Web fonts
├── images/ # Images and icons
├── js/
│ ├── modules/ # JavaScript modules
│ └── app.js # Main JavaScript entry point
├── pages/
│ └── index.html # HTML templates
└── styles/
├── abstracts/ # Variables, mixins, functions
├── base/ # Basic styles
├── components/ # UI components
├── layout/ # Layout sections
├── vendors/ # Third-party styles
└── style.scss # Main stylesheet entry point
git clone https://github.com/lvog/webpack-markup-starter.gitcd webpack-markup-starterMake sure you have Node.js installed. To check your current version:
node -vIf you haven't installed Node.js yet, you can download it from official Node.js website. For stable operation, it's recommended to use v22.22.1 or higher. Once Node.js is installed, run the following command to install the necessary dependencies:
npm installnpm run devThis will start the project in development mode.
npm run buildAll files will be generated in the dist folder.
Distributed under the MIT License. See LICENSE for more information.
- Email: levchuk.oleg21@gmail.com
- Website: lvog.github.io
- LinkedIn: in/oleg-levchuk-2098b2b7