forked from shakacode/react-webpack-rails-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap-sass.config.js
88 lines (74 loc) · 2.02 KB
/
bootstrap-sass.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// IMPORTANT: Make sure to keep the customizations defined in this file
// in-sync with the ones defined in app/assets/stylesheets/_bootstrap-custom.scss.
module.exports = {
bootstrapCustomizations: './assets/stylesheets/_bootstrap-variables-customization.scss',
mainSass: './assets/stylesheets/_app-styling-post-bootstrap-loading.scss',
// Default for the style loading is to put in your js files
// styleLoader: 'style-loader!css-loader!sass-loader',
// See: https://github.com/sass/node-sass#outputstyle
// https://github.com/sass/node-sass#imagepath
styleLoader: 'style-loader!css-loader!sass-loader?imagePath=/assets/images',
// ### Scripts
// Any scripts here set to false will never make it to the client,
// i.e. it's not packaged by webpack.
scripts: {
transition: true,
alert: true,
button: true,
// excluding as an example
carousel: false,
collapse: true,
dropdown: true,
// excluding as an example
modal: false,
tooltip: true,
popover: true,
scrollspy: true,
tab: true,
affix: true,
},
// ### Styles
// Enable or disable certain less components and thus remove
// the css for them from the build.
styles: {
mixins: true,
normalize: true,
print: true,
scaffolding: true,
type: true,
code: true,
grid: true,
tables: true,
forms: true,
buttons: true,
'component-animations': true,
glyphicons: true,
dropdowns: true,
'button-groups': true,
'input-groups': true,
navs: true,
navbar: true,
breadcrumbs: true,
pagination: true,
pager: true,
labels: true,
badges: true,
// excluding as an example
jumbotron: false,
thumbnails: true,
alerts: true,
// excluding as an example
'progress-bars': false,
media: true,
'list-group': true,
panels: true,
wells: true,
close: true,
modals: true,
tooltip: true,
popovers: true,
carousel: true,
utilities: true,
'responsive-utilities': true,
},
};