The SilverStripe theme that uses Bootstrap 4 with Laravel Mix
Fork of eolant/silverstripe-bootstrap-mix as an example for using silverstripe-mix
This is a boilerplate base theme for SilverStripe 4 that you can use for all your custom Boostrap 4 themes.
It uses Laravel Mix for assets compilation and hot module reloading for quick and easy development allowing you to focus on the task at hand, not worrying about front end tools.
Includes a SASS and React example, but can easily be replaced for anything else such as SASS, LESS, Stylus, Vue, etc.
Refer to the laravel-mix documentation for more details.
composer require ssmix/bootstrap-theme
app/_config/theme.yml
SilverStripe\View\SSViewer:
themes:
- ssmix-bootstrap
- '$public'
- '$default'
yarn install
from the theme directoryyarn hot watch
for developmentyarn build
for production buildpackage.json
for all commands.If you want to rename the theme, create extras.expose key in your root composer.json
Replace <theme-name> with the new name
"extra": {
"expose": [
"themes/<theme-name>/dist",
"themes/<theme-name>/css"
]
}
Then run vendor expose to generate the correct symlinks. See silverstripe/vendor-plugin and the SilverStripe Requirements docs for more information on vendor expose.
composer vendor-expose
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem