• Stars
    star
    251
  • Rank 161,862 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Gulp with TailwindCSS Starter Kit

Gulp with TailwindCSS Starter Kit

Gulp with TailwindCSS v3 Starter Kit ( Updated with TailwindCSS JIT - latest tailwind has JIT is built-in ) - A repo that makes your development easier with predefined gulp tasks that help you to use tailwindcss with simple commands.

Features

Quick Start

You can get started by clicking on Use this template for creating new repo using this template or simply by cloning it.

Install dev dependencies

yarn install // or npm install

Start development server with live preview

yarn dev // or npm run dev

Generate build files for production server

yarn prod // or npm run prod

All dev files are present in src folder. The build version can be found in build folder after running yarn build command.

Configuration

All configurations are found in config.js file in the root directory. You can configure browser default port, enable/disable plugins by simply updating boolean values (Default is set to true) and many more.

const config = {
  tailwindjs: "./tailwind.config.js",
  port: 9050, // default port
  // purgecss options
  purgecss: {
    content: ["src/**/*.{html,js,php}"],
    ...
  },
  // imagemin options for image optimizations
  imagemin: {
    png: [0.7, 0.7], // range between min (0) and max (1) as quality - 70% with current values for png images,
    jpeg: 70, // % of compression for jpg, jpeg images
  },
};

// tailwind plugins
const plugins = {
  typography: true, // set to false to disable
  forms: true,
  containerQueries: true,
};
...

License

This project is open source and available under the MIT License.