Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

danmatthews's avatar

Removing bootstrap's Javascript from Spark

I feel like an idiot right now.

How can i remove bootstrap's JS library from a Spark install?

I've removed this line from bootstrap.js, then ran gulp, but it's still there!

require('bootstrap-sass');

Is there something being pulled in from the spark package that also requires it?

I realise Spark needs it to use it's modals etc - i won't be using those.

Thanks for your help.

Sincerely, Captain Idiotface.

0 likes
2 replies
danmatthews's avatar

Sorry it doesn't - only tells you how to pull out the Vue components rather than bootstrap itself.

danmatthews's avatar
danmatthews
OP
Best Answer
Level 5

Blergh, okay, so it looks like it's pulled in automatically as part of the webpack configuration - the only sure way to stop it being imported is removing it from the package.json file.

Currently looking at ways to configure webpack to exclude it, and will update this thread if i find more.

But yeah.... blerg.

blerg

Please or to participate in this conversation.