A starter frontend boilerplate using Webpack 5, TailwindCSS, SASS, PostCSS, Babel, ESLint, Stylelint, Prettier and more.
development
or production
..env
file with dotenv-webpack.babel-preset-env
.prose
classes that can be used to quickly add sensible typographic styles to content blocks.post-preset-env
, including autoprefixing of browserspecific CSS rules.stylelint-config-standard-scss
, stylelint-config-recess-order
.jpeg
, jpg
, png
, gif
, svg
filesize with imagemin.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.
npm run build
Builds the app for production to the dist
folder.
The build is minified and the filenames include hashes.
npm run lint
Runs both SASS
and Javascript
code linters.
npm run css-lint
npm run js-lint
npm run prettier:format
Runs code formatting with Prettier.
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.
node
: >=18
npm
: >=8