Skip to content

andreivictor/webpack-starter-html-loader

Repository files navigation

Webpack Starter

Webpack

A starter frontend boilerplate using Webpack 5, SASS, PostCSS, Babel, ESLint, Stylelint, Prettier and more.

Features

Webpack

Babel

CSS / SASS / PostCSS

Code style & linters

Optimization

Additional tools

Usage

Development server

npm start

Runs the app in the development mode with hot reloading enabled.
Open http://localhost:8080 or server port specified in your .env file to view it in your browser.

Production build

npm run build

Builds the app for production to the dist folder.
The build is minified and the filenames include hashes.

Code style linters

npm run lint

Runs both SASS and Javascript code linters.

SASS

npm run css-lint

Javascript

npm run js-lint

Code formatting

npm run prettier:format

Runs code formatting with Prettier.

Bundle analyzer

npm run analyze

Builds the app for production and creates an interactive treemap visualization of the contents of all your bundles.
It will start an HTTP server on the default configuration URL localhost:8888 to show bundle report.

Requirements

  • node: >=18
  • npm: >=8

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published