mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Update webpack.md
Minor edits for style and consistency
This commit is contained in:
parent
fb60a4a986
commit
817b80d54b
@ -40,7 +40,7 @@ Notice that if you chose to **import plugins individually**, you must also insta
|
|||||||
|
|
||||||
To enjoy the full potential of Bootstrap and customize it to your needs, use the source files as a part of your project's bundling process.
|
To enjoy the full potential of Bootstrap and customize it to your needs, use the source files as a part of your project's bundling process.
|
||||||
|
|
||||||
First, create your own `_custom.scss` and use it to override the [built-in custom variables]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/options/). Then, use your main sass file to import your custom variables, followed by Bootstrap:
|
First, create your own `_custom.scss` and use it to override the [built-in custom variables]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/options/). Then, use your main Sass file to import your custom variables, followed by Bootstrap:
|
||||||
|
|
||||||
{% highlight scss %}
|
{% highlight scss %}
|
||||||
@import "custom";
|
@import "custom";
|
||||||
@ -76,13 +76,13 @@ For Bootstrap to compile, make sure you install and use the required loaders: [s
|
|||||||
|
|
||||||
### Importing Compiled CSS
|
### Importing Compiled CSS
|
||||||
|
|
||||||
Alternatively, you may use Bootstrap's ready-to-use css by simply adding this line to your project's entry point:
|
Alternatively, you may use Bootstrap's ready-to-use CSS by simply adding this line to your project's entry point:
|
||||||
|
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
In this case you may use your existing rule for `css` without any special modifications to webpack config except you don't need `sass-loader` just [style-loader](https://github.com/webpack-contrib/style-loader) and [css-loader](https://github.com/webpack-contrib/css-loader).
|
In this case you may use your existing rule for `css` without any special modifications to webpack config, except you don't need `sass-loader` just [style-loader](https://github.com/webpack-contrib/style-loader) and [css-loader](https://github.com/webpack-contrib/css-loader).
|
||||||
|
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user