You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/getting-started/webpack.md
+6-5
Original file line number
Diff line number
Diff line change
@@ -15,19 +15,19 @@ toc: true
15
15
Import [CoreUI's JavaScript]({{< docsref "/getting-started/javascript" >}}) by adding this line to your app's entry point (usually `index.js` or `app.js`):
16
16
17
17
```js
18
-
import'@coreui/coreui';
18
+
import'@coreui/coreui'
19
19
20
20
// or get all of the named exports for further usage
21
-
import*ascoreuifrom'@coreui/coreui';
21
+
import*ascoreuifrom'@coreui/coreui'
22
22
```
23
23
24
24
Alternatively, if you only need just a few of our plugins, you may **import plugins individually** as needed:
CoreUI for Bootstrap depends on [Popper](https://popper.js.org/), which is specified in the `peerDependencies` property.
@@ -48,6 +48,7 @@ First, create your own `_custom.scss` and use it to override the [built-in custo
48
48
49
49
For CoreUI for Bootstrap to compile, make sure you install and use the required loaders: [sass-loader](https://github.com/webpack-contrib/sass-loader), [postcss-loader](https://github.com/webpack-contrib/postcss-loader) with [Autoprefixer](https://github.com/postcss/autoprefixer#webpack). With minimal setup, your webpack config should include this rule or similar:
50
50
51
+
<!-- eslint-skip -->
51
52
```js
52
53
// ...
53
54
{
@@ -86,7 +87,7 @@ For CoreUI for Bootstrap to compile, make sure you install and use the required
86
87
Alternatively, you may use CoreUI's ready-to-use CSS by simply adding this line to your project's entry point:
87
88
88
89
```js
89
-
import'@coreui/coreui/dist/css/coreui.min.css';
90
+
import'@coreui/coreui/dist/css/coreui.min.css'
90
91
```
91
92
92
93
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).
0 commit comments