lazymozek/gulp-with-tailwindcss
소개
Gulp with TailwindCSS Starter Kit
웹 및 앱 개발What you can do
- Easy configuration using config.js
- Live reload on file/assets changes using browser-sync
- Minification of styles and scripts on production build
- Minification of images on production build using imagemin
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGulp 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
Easy configuration using
config.jsLive reload on file/assets changes using
browser-syncSCSS support
Minification of styles and scripts on production build
Minification of images on production build using
imageminIncludes following tailwindcss plugins (can be disabled/enabled with
config.js)- @tailwindcss/forms
- @tailwindcss/line-clamp - Utility is included by default in Tailwind v3.3 release
- @tailwindcss/typography
- @tailwindcss/container-queries
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.
관련 프로젝트 살펴보기
불러오는 중…