Skip to content

Commit fb9fdc7

Browse files
committed
Optimize Buefy css imports to reduce the bundle size
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent b56875c commit fb9fdc7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/App.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737

3838
<script>
3939
// TODO Reduce custom styling in favour of Vocabulary styles
40-
import '@creativecommons/vocabulary/css/root.css'
41-
import '@creativecommons/vocabulary/css/index.css'
4240
4341
import HelpSection from './components/HelpSection'
4442
import Stepper from './components/Stepper'
@@ -97,7 +95,14 @@ export default {
9795
9896
// Import Bulma and Buefy styles
9997
@import "~bulma";
100-
@import "~buefy/src/scss/buefy";
98+
@import '~buefy/src/scss/utils/_variables.scss';
99+
@import '~buefy/src/scss/components/_modal.scss';
100+
@import '~buefy/src/scss/components/_radio.scss';
101+
@import '~buefy/src/scss/components/_tabs.scss';
102+
@import '~buefy/src/scss/components/_select.scss';
103+
@import '~buefy/src/scss/components/_form.scss';
104+
@import '~buefy/src/scss/components/_icon.scss';
105+
101106
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro%3A%20400%2C600%2C700%7CRoboto+Condensed&ver=4.9.8");
102107
103108
#app {

src/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Vue from 'vue'
22
import Buefy from 'buefy'
3-
import 'buefy/dist/buefy.css'
43
import i18n from './i18n'
54
import VueAnalytics from 'vue-analytics'
65
import App from './App.vue'

0 commit comments

Comments
 (0)