The SilverStripe theme that uses Bootstrap 4 with Laravel 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 Browsersync for quick and easy development allowing you to focus on the task at hand, not worrying about front end tools. You can also easily replace Bootstrap for anything else. As well as use SASS, LESS, Stylus. Refer this page for more details about Laravel Mix.
composer require eolant/silverstripe-bootstrap-mix
_config/theme.yml
npm install
from theme directorywebpack.mix.js
npm run watch
for developmentnpm run prod
for production buildpackage.json
for all commands.If you want to rename the theme, make sure to create links to javascript
, css
, images
directories
You can execute following commands from theme's directory (replace silverstripe-bootstrap-mix
with the new name):
rm -rf $(pwd)/../../public/resources/themes/silverstripe-bootstrap-mix
mkdir $(pwd)/../../public/resources/themes/silverstripe-bootstrap-mix
ln -s $(pwd)/javascript $(pwd)/../../public/resources/themes/silverstripe-bootstrap-mix
ln -s $(pwd)/css $(pwd)/../../public/resources/themes/silverstripe-bootstrap-mix
ln -s $(pwd)/images $(pwd)/../../public/resources/themes/silverstripe-bootstrap-mix
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