-
There are instructions around how to include the less version of FUI in webpack, and it’s also possible to build the normal FUI and include the resulting CSS files in webpack. But how can I import the FUI JS file import $ from 'jquery'
import 'htmx.org'
import 'fomantic-ui/dist/semantic.css'
window.jQuery = $
window.$ = $
window.htmx = require('htmx.org') How can I do something similar like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
fomantic is a jquery plugin (or a collection of plugins) and no es6 module and thus cannot be imported the es6 way but needs to be included via script tags right after jquery maybe the Provide-plugin helps? A simple boilerplate is here #2692 (comment) |
Beta Was this translation helpful? Give feedback.
-
Seems to work within webpack when requiring from the src/definitions folder |
Beta Was this translation helpful? Give feedback.
Seems to work within webpack when requiring from the src/definitions folder
See #2692 (reply in thread)