Skip to content

Commit e946eed

Browse files
committed
fix: πŸ› import bootstrap files with prependData (fixes #43)
1 parent e22f031 commit e946eed

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"postcss": "^7.0.6",
4040
"postcss-loader": "^3.0.0",
4141
"precss": "^4.0.0",
42-
"sass-loader": "^7.1.0",
42+
"sass-loader": "^8.0.2",
4343
"style-loader": "^0.23.1",
4444
"webpack": "^4.27.0",
4545
"webpack-cli": "^3.1.2"

β€Žsrc/layout.scssβ€Ž

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
@import "~bootstrap/scss/functions";
2-
@import "~bootstrap/scss/variables";
3-
@import "~bootstrap/scss/mixins";
4-
51
@import "single";
62
@import "multiple";
73

β€Žwebpack.config.jsβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ module.exports = {
5858
},
5959
{
6060
loader: 'sass-loader',
61+
options: {
62+
prependData: `
63+
@import "~bootstrap/scss/functions";
64+
@import "~bootstrap/scss/variables";
65+
@import "~bootstrap/scss/mixins";
66+
`
67+
}
6168
},
6269
],
6370
}),

0 commit comments

Comments
Β (0)