Skip to content Skip to sidebar Skip to footer

How To Require Tether With Webpack?

I have a webpack application I'm using with laravel elixir. In this application I have a bootstrap.js file for initializing all of my libraries. Here it is: window._ = require('l

Solution 1:

To use tether, you'll need to make it available on window.

global.Tether = require('tether');

Now, you can use it with another libraries, for examples, with bootstrap@4. Don't use import.

require('bootstrap');

Post a Comment for "How To Require Tether With Webpack?"