Installation
Requirements
- PHP 7.1
- Node (we recommend NVM)
- Composer
Composer
- Require tailvite in your project
composer require sinyayadynya/tailvite
- Move into the contrib Tailvite theme directory
cd web/themes/contrib/tailvite
- Create your new custom theme by cloning tailvite
php tailvite.php "THEME NAME"
(Run php tailvite.php -h for other available options) - Move into your new custom theme directory
cd ../../custom/THEME_NAME/
- Install the theme dependencies
npm install
- Build theme
npm run build
- Enable your theme and its dependencies*
drush then THEME_NAME -y && drush en components bamboo_twig simplify_menu -y
- Set your custom theme to be the default
drush config-set system.theme default THEME_NAME -y
- Disable Drupal caching during development
- To enable the Vite development server, first add the following into your settings.php (preferably settings.local.php) file:
$settings['hot_module_replacement'] = TRUE;
- Finally, start up the Vite development server:
npm run dev
Assets such as JS and CSS will now be served from Vite’s http://localhost:12321
.
Help & Support
Tailvite is a free, open source project built and maintained by BlueMelon. We welcome community contributions and support requests (via issues) on Github.