Skip to content

Commit 7b2372f

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Fix node_modules path (twbs#26653)
1 parent 1af5a30 commit 7b2372f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/4.1/getting-started/theming.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,24 @@ In your `custom.scss`, you'll import Bootstrap's source Sass files. You have two
5050
// Custom.scss
5151
// Option A: Include all of Bootstrap
5252

53-
@import "node_modules/bootstrap/scss/bootstrap";
53+
@import "../node_modules/bootstrap/scss/bootstrap";
5454
{% endhighlight %}
5555

5656
{% highlight scss %}
5757
// Custom.scss
5858
// Option B: Include parts of Bootstrap
5959

6060
// Required
61-
@import "node_modules/bootstrap/scss/functions";
62-
@import "node_modules/bootstrap/scss/variables";
63-
@import "node_modules/bootstrap/scss/mixins";
61+
@import "../node_modules/bootstrap/scss/functions";
62+
@import "../node_modules/bootstrap/scss/variables";
63+
@import "../node_modules/bootstrap/scss/mixins";
6464

6565
// Optional
66-
@import "node_modules/bootstrap/scss/reboot";
67-
@import "node_modules/bootstrap/scss/type";
68-
@import "node_modules/bootstrap/scss/images";
69-
@import "node_modules/bootstrap/scss/code";
70-
@import "node_modules/bootstrap/scss/grid";
66+
@import "../node_modules/bootstrap/scss/reboot";
67+
@import "../node_modules/bootstrap/scss/type";
68+
@import "../node_modules/bootstrap/scss/images";
69+
@import "../node_modules/bootstrap/scss/code";
70+
@import "../node_modules/bootstrap/scss/grid";
7171
{% endhighlight %}
7272

7373
With that setup in place, you can begin to modify any of the Sass variables and maps in your `custom.scss`. You can also start to add parts of Bootstrap under the `// Optional` section as needed. We suggest using the full import stack from our `bootstrap.scss` file as your starting point.
@@ -88,7 +88,7 @@ $body-bg: #000;
8888
$body-color: #111;
8989

9090
// Bootstrap and its default variables
91-
@import "node_modules/bootstrap/scss/bootstrap";
91+
@import "../node_modules/bootstrap/scss/bootstrap";
9292
{% endhighlight %}
9393

9494
Repeat as necessary for any variable in Bootstrap, including the global options below.
@@ -126,16 +126,16 @@ To remove colors from `$theme-colors`, or any other map, use `map-remove`. Be aw
126126

127127
{% highlight scss %}
128128
// Required
129-
@import "node_modules/bootstrap/scss/functions";
130-
@import "node_modules/bootstrap/scss/variables";
131-
@import "node_modules/bootstrap/scss/mixins";
129+
@import "../node_modules/bootstrap/scss/functions";
130+
@import "../node_modules/bootstrap/scss/variables";
131+
@import "../node_modules/bootstrap/scss/mixins";
132132

133133
$theme-colors: map-remove($theme-colors, "info", "light", "dark");
134134

135135
// Optional
136-
@import "node_modules/bootstrap/scss/root";
137-
@import "node_modules/bootstrap/scss/reboot";
138-
@import "node_modules/bootstrap/scss/type";
136+
@import "../node_modules/bootstrap/scss/root";
137+
@import "../node_modules/bootstrap/scss/reboot";
138+
@import "../node_modules/bootstrap/scss/type";
139139
...
140140
{% endhighlight %}
141141

0 commit comments

Comments
 (0)