Socket
Socket
Sign inDemoInstall

bootstrap.native-loader

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bootstrap.native-loader

Webpack loader for bootstrap.native


Version published
Weekly downloads
417
decreased by-25.27%
Maintainers
1
Install size
94.7 kB
Created
Weekly downloads
 

Readme

Source

bootstrap.native-loader

This is a webpack loader for bootstrap.native.

yarn add https://github.com/thednp/bootstrap.native.git#641148791eb03a68014b0b9857530a5a91299e56
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']
    }
  }
}

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 02 Feb 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • 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