Skip to content

Commit 1f94365

Browse files
committed
fix: returned variables init
1 parent f81710f commit 1f94365

File tree

5 files changed

+1004
-3
lines changed

5 files changed

+1004
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MyFirstBootstrapWebsite",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"author": "Daniel Srb",
55
"license": "MIT",
66
"description": "A basic template to start a website based on Bootstrap 5",

src/scss/_3-customized-bootstrap-variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
// Please see _4-customized-bootstrap-variables.scss.
3333
// for a more practical version of this solution.
3434

35+
@import "bootstrap-variables-init"; // init all variables so dart sass doesn’t throw deprecation warnings
36+
3537
%custom-bootstrap-variables {
3638
@import "node_modules/bootstrap/scss/functions";
3739
@import "node_modules/bootstrap/scss/variables";

src/scss/_4-customized-bootstrap-variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
// `^\$([a-z0-9-]+):(\s+)(.*)(\s+)!default;` => `// \$$1: $3; \$$1: \$$1 !global; // $3`
3737
// Complex structures as maps etc. must be edited manually.
3838

39+
@import "bootstrap-variables-init"; // init all variables so dart sass doesn’t throw deprecation warnings
40+
3941
%custom-bootstrap-variables {
4042
@import "node_modules/bootstrap/scss/functions";
4143
@import "node_modules/bootstrap/scss/variables";

0 commit comments

Comments
 (0)