Skip to content

Instantly share code, notes, and snippets.

@rubenRP
Created April 27, 2018 09:07
Show Gist options
  • Save rubenRP/c75f7970431eb799f55320a894eb48e4 to your computer and use it in GitHub Desktop.
Save rubenRP/c75f7970431eb799f55320a894eb48e4 to your computer and use it in GitHub Desktop.
Bootstraprc file for support Bootstrap 4 in Deity.
---
# Output debugging info
# loglevel: debug
# Major version of Bootstrap: 3 or 4
bootstrapVersion: 4
# If Bootstrap version 4 is used - turn on/off flexbox model
useFlexbox: true
# Webpack loaders, order matters
styleLoaders:
- style
- css
- postcss
- sass
# Extract styles to stand-alone css file
# Different settings for different environments can be used,
# It depends on value of NODE_ENV environment variable
# This param can also be set in webpack config:
# entry: 'bootstrap-loader/extractStyles'
extractStyles: false
# env:
# development:
# extractStyles: false
# production:
# extractStyles: true
env:
development:
styleLoaders:
- style-loader
- css-loader
- resolve-url-loader
- sass-loader
extractStyles: false
production:
extractStyles: true
# Customize Bootstrap variables that get imported before the original Bootstrap variables.
# Thus, derived Bootstrap variables can depend on values from here.
# See the Bootstrap _variables.scss file for examples of derived Bootstrap variables.
#
# preBootstrapCustomizations: ./path/to/bootstrap/pre-customizations.scss
preBootstrapCustomizations: ./src/theme/base/bootstrap.precustomizations.scss
# This gets loaded after bootstrap/variables is loaded
# Thus, you may customize Bootstrap variables
# based on the values established in the Bootstrap _variables.scss file
#
# bootstrapCustomizations: ./path/to/bootstrap/customizations.scss
bootstrapCustomizations: ./src/theme/variables.scss
# Import your custom styles here
# Usually this endpoint-file contains list of @imports of your application styles
#
# appStyles: ./path/to/your/app/styles/endpoint.scss
appStyles: ./src/theme/custom.scss
### Bootstrap styles
styles:
functions: true
variables: true
mixins: true
root: true
reboot: true
type: true
images: true
code: true
grid: true
tables: true
forms: true
buttons: true
transitions: true
dropdown: true
button-group: true
input-group: true
custom-forms: true
nav: true
navbar: false
card: true
breadcrumb: true
pagination: true
badge: true
jumbotron: true
alert: true
progress: true
media: true
list-group: true
close: true
modal: true
tooltip: true
popover: true
carousel: true
utilities: true
print: true
### Bootstrap scripts
scripts: false
# alert: true
# button: true
# carousel: true
# collapse: true
# dropdown: true
# modal: true
# popover: true
# scrollspy: true
# tab: true
# tooltip: true
# util: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment