Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
faSmoking,
faSmile,
faThumbsUp,
faTimes,
faUsers,
faUserSecret,
faWrench
} from '@fortawesome/free-solid-svg-icons'
import {
faGithub
} from '@fortawesome/free-brands-svg-icons'
// Prevents flicker when using Turbolinks
// Ref: https://github.com/FortAwesome/Font-Awesome/issues/11924
config.mutateApproach = 'sync'
library.add(
faArrowDown,
faArrowUp,
faBan,
faBullhorn,
faCheck,
faChevronDown,
faClock,
faCog,
faComment,
faComments,
faExchangeAlt,
faExclamationTriangle,
faFlag,
faFrown,
import { config, library, dom } from '@fortawesome/fontawesome-svg-core'
import {
faGithub
} from '@fortawesome/free-brands-svg-icons'
// Prevents flicker when using Turbolinks
// Ref: https://github.com/FortAwesome/Font-Awesome/issues/11924
config.mutateApproach = 'sync'
library.add(
faGithub
)
dom.watch()
import { config, library, dom } from '@fortawesome/fontawesome-svg-core'
import {
faGithub
} from '@fortawesome/free-brands-svg-icons'
// Prevents flicker when using Turbolinks
// Ref: https://github.com/FortAwesome/Font-Awesome/issues/11924
config.mutateApproach = 'sync'
library.add(
faGithub
)
dom.watch()
import { config, library, dom } from '@fortawesome/fontawesome-svg-core'
import {
faThumbsUp as farThumbsUp,
faThumbsDown as farThumbsDown
} from '@fortawesome/pro-regular-svg-icons'
import {
faSpinner as fasSpinner
} from '@fortawesome/pro-solid-svg-icons'
// https://fontawesome.com/how-to-use/on-the-web/using-with/turbolinks
config.mutateApproach = 'sync'
library.add(
// Regular
farThumbsUp,
farThumbsDown,
// Solid
fasSpinner
)
dom.watch()