Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

bootstrap.native-loader

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Issues
File Explorer

Advanced tools

bootstrap.native-loader

Webpack loader for bootstrap.native

    2.0.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
612
decreased by-13.07%

Weekly downloads

Readme

Source

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

Last updated on 23 Apr 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc