Skip to content

Commit

Permalink
Optimise bootstrap build
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickP committed Feb 9, 2022
1 parent db7034e commit a77e9ad
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions website/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,38 @@
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import { BootstrapVue } from 'bootstrap-vue'
import {
AlertPlugin,
ButtonPlugin,
CardPlugin,
CollapsePlugin,
FormCheckboxPlugin,
FormGroupPlugin,
FormInputPlugin,
FormPlugin,
FormSelectPlugin,
LayoutPlugin,
TabsPlugin,
TooltipPlugin
} from 'bootstrap-vue'

import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'

Vue.config.productionTip = false

Vue.use(BootstrapVue)
Vue.use(AlertPlugin)
Vue.use(ButtonPlugin)
Vue.use(CardPlugin)
Vue.use(CollapsePlugin)
Vue.use(FormCheckboxPlugin)
Vue.use(FormGroupPlugin)
Vue.use(FormInputPlugin)
Vue.use(FormPlugin)
Vue.use(FormSelectPlugin)
Vue.use(LayoutPlugin)
Vue.use(TabsPlugin)
Vue.use(TooltipPlugin)

Vue.filter('formatNumber', function(value) {
return new Intl.NumberFormat().format(value)
Expand Down

0 comments on commit a77e9ad

Please sign in to comment.