How to use the @fortawesome/fontawesome-svg-core.config.mutateApproach function in @fortawesome/fontawesome-svg-core

To help you get started, we’ve selected a few @fortawesome/fontawesome-svg-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github diowa / icare / app / javascript / src / fontawesome.js View on Github external
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,
github diowa / ruby2-rails5-bootstrap-heroku / app / javascript / src / fontawesome.js View on Github external
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()
github diowa / ruby3-rails6-bootstrap-heroku / app / javascript / src / fontawesome.js View on Github external
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()
github railsbump / app / app / javascript / application / font-awesome.js View on Github external
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()