mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-19 20:00:59 +00:00
Don't reference `Tether` via attachment to `window`, with the update one can import bootstrap providing the dependencies in webpack with:
```
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
Tether: 'tether',
});
```
Then inside one's own bootstrap/globals, `import 'bootstrap';` will simply work, and $/jQuery can be used from there.
I had wanted to do this, but also expose jQuery, Tether, etc when in development build in my code, but if I provide `window.Tether`, I can't then expose it to the outside...
|
||
|---|---|---|
| .. | ||
| dist | ||
| src | ||
| tests | ||
| .eslintrc | ||
| .jscsrc | ||