A basic repository with tailwind css, purgecss and webpack
This repository provides a webpack/html tailwind starter project for concrete5 theme development. The project has been updated to version 2.1 of tailwind, using JIT, and to webpack 5. It now includes @tailwind/forms and @tailwind/typography, with @tailwind/ui removed. The project allows for easy building and development of concreteCMS themes.
To install and use the tailwind starter project, follow these steps:
npm install to install all the necessary dependencies.To build the project, follow these steps:
npm run build to build the project. The dist directory will now contain all the relevant HTML and CSS files.npm run build:dev to build the development assets. However, note that the file sizes in this mode are larger.To build the project specifically for concreteCMS, follow these steps:
npm run build:c5 to build the project for concreteCMS. The dist/theme_name directory will now contain all the relevant php, css, and js files.For development:
npm run dev. A web browser popup will appear, and the page will automatically reload whenever you save changes.npm run watch which will auto-compile all the files whenever changes happen. This mode is useful if you are linking to CSS/JS files in other projects and don’t need hot-reloading.Note: All output files are automatically generated in this version. When using SCSS files, simply add <link href='scss/filename.scss' rel='stylesheet'>. It will be automatically converted and compiled into <link href='assets/css/filename.css' rel='stylesheet'>. The index.js file is not required in your HTML files as it is already included.
This repository provides a convenient webpack/html tailwind starter project for concrete5 theme development. It includes the latest version of tailwind CSS with JIT compilation, webpack 5 for improved performance, and additional plugins for styling form elements and typography. The project allows for easy building, development, and integration with concreteCMS.