mirror of https://github.com/twbs/bootstrap.git
Move explanation after having actually included the Sass files
This commit is contained in:
parent
d14fee7dd1
commit
a7fdd9a525
|
@ -109,16 +109,7 @@ With dependencies installed and our project folder ready for us to start coding,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
3. **And finally, we can start Parcel.** From the `my-project` folder in your terminal, run that newly added npm script:
|
||||||
3. **Optional:** You may see Sass deprecation warnings with the latest versions of Dart Sass. These can silenced by adding the following configuration in a `.sassrc.js` file in the root folder with the following:
|
|
||||||
|
|
||||||
```js
|
|
||||||
module.exports = {
|
|
||||||
silenceDeprecations: ['import', 'mixed-decls', 'color-functions', 'global-builtin']
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
4. **And finally, we can start Parcel.** From the `my-project` folder in your terminal, run that newly added npm script:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm start
|
npm start
|
||||||
|
@ -141,6 +132,14 @@ Importing Bootstrap into Parcel requires two imports, one into our `styles.scss`
|
||||||
|
|
||||||
*You can also import our stylesheets individually if you want. [Read our Sass import docs]({{< docsref "/customize/sass#importing" >}}) for details.*
|
*You can also import our stylesheets individually if you want. [Read our Sass import docs]({{< docsref "/customize/sass#importing" >}}) for details.*
|
||||||
|
|
||||||
|
**Optional:** You may see Sass deprecation warnings with the latest versions of Dart Sass. These can silenced by adding the following configuration in a `.sassrc.js` file in the root folder with the following:
|
||||||
|
|
||||||
|
```js
|
||||||
|
module.exports = {
|
||||||
|
silenceDeprecations: ['import', 'mixed-decls', 'color-functions', 'global-builtin']
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
2. **Import Bootstrap's JS.** Add the following to `src/js/main.js` to import all of Bootstrap's JS. Popper will be imported automatically through Bootstrap.
|
2. **Import Bootstrap's JS.** Add the following to `src/js/main.js` to import all of Bootstrap's JS. Popper will be imported automatically through Bootstrap.
|
||||||
|
|
||||||
<!-- eslint-skip -->
|
<!-- eslint-skip -->
|
||||||
|
|
Loading…
Reference in New Issue