🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

bootstrap.native-loader

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native-loader

Webpack loader for bootstrap.native

2.0.0
latest
63

Supply Chain Security

100

Vulnerability

75

Quality

76

Maintenance

100

License

Version published
Weekly downloads
329
4.11%
Maintainers
1
Weekly downloads
 
Created

bootstrap.native-loader

This is a webpack loader for bootstrap.native.

yarn add bootstrap.native
yarn add --dev bootstrap.native-loader

In your webpack config file, in the rules array, add this object. This will compile all of the bootstrap.native modules.

{
  test: /bootstrap\.native/,
  use: {
    loader: 'bootstrap.native-loader'
  }
}

There's also an only option. (cannot be used at the same time as the ignore option)

{
  test: /bootstrap\.native/,
  use: {
    loader: 'bootstrap.native-loader',
    options: {
      only: ['modal', 'dropdown']
    }
  }
}

Also, an ignore option. (cannot be used at the same time as the only option)

{
  test: /bootstrap\.native/,
  use: {
    loader: 'bootstrap.native-loader',
    options: {
      ignore: ['carousel', 'button']
    }
  }
}

A full list of components that can be listed under ignore or only are shown below.

['alert', 'button',  'carousel', 'collapse', 'dropdown', 'modal', 'popover', 'scrollspy', 'tab', 'tooltip']

Once you have the above setup in your add the code below to include the custom build in your bundle.

import 'bootstrap.native';

or if you use require

require('bootstrap.native');

FAQs

Package last updated on 23 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts