Skip to content

Commit

Permalink
NPM import for bootstrap 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Karasiq committed Jun 16, 2018
1 parent 1c0c298 commit 62a38c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/frontend-v4/common.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
jQuery: "jquery" // Bootstrap.js uses global jQuery internally
})
]
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import rx._
import com.karasiq.bootstrap4.Bootstrap.default._
import scalaTags.all._

import com.karasiq.bootstrap.jquery.BootstrapJQueryContext

object BootstrapTestApp {
def main(args: Array[String]): Unit = {
// JSRenderingContext.useNpmImports()
BootstrapJQueryContext.useNpmImports()
jQuery(() {
// Table tab will appear after 3 seconds
val tableVisible = Var(false)
Expand Down

0 comments on commit 62a38c3

Please sign in to comment.