Import[Bootstrap'sJavaScript]({{site.baseurl}}/docs/{{site.docs_version}}/getting-started/javascript/)byaddingthislinetoyourapp'sentrypoint(usually`index.js` or `app.js`):
ForBootstraptocompile,makesureyouinstallandusetherequiredloaders:[sass-loader](https://github.com/webpack-contrib/sass-loader), [postcss-loader](https://github.com/postcss/postcss-loader) with [Autoprefixer](https://github.com/postcss/autoprefixer#webpack). With minimal setup, your webpack config should include this rule or similar:
{%highlightjs%}
...
{
test:/\.(scss)$/,
use:[{
loader:'style-loader',// inject CSS to page
},{
loader:'css-loader',// translates CSS into CommonJS modules
},{
loader:'postcss-loader',// Run postcss actions
options:{
plugins:function(){// postcss plugins, can be exported to postcss.config.js
Inthiscaseyoumayuseyourexistingrulefor`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).