I
I
Ivan Simonov2019-05-08 19:10:44
JavaScript
Ivan Simonov, 2019-05-08 19:10:44

How to properly include bootstrap.min.js?

Hello , I
use these sources https://github.com/IamManchanda/gulp-webpack
Downloaded bootstrap.min.js
In the entry.js file I write

module.exports = { 
  bootstrap: './website/src/js/bootstrap.min.js',
  scripts: './website/src/js/scripts.js',  
};

I get an error
How to connect correctly bootstrap.min.js?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
h0w4rd, 2019-05-08
@h0w4rd

Try this, it should work.

module.exports = { 
  scripts: [ './website/src/js/scripts.js', './website/src/js/bootstrap.min.js' ] 
};

A
Alfieros, 2019-05-08
@mrsexy

If you are using gulp/webpack, why include BS separately with a script if there is a package ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question