How to use the @fortawesome/fontawesome-svg-core.dom.css 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 hexojs / hexo-fontawesome / index.js View on Github external
function faCss() {
  return dom.css()
}
github Mogztter / asciidoctor-pdf.js / lib / document / templates.js View on Github external
const fontAwesomeStyle = (node) => {
  if (isSvgIconEnabled(node)) {
    return `<style>
${faDom.css()}
</style>`
  }
  return ''
}
github Mogztter / asciidoctor-pdf.js / src / quarkus-cheat-sheet / template / index.js View on Github external
const fontAwesomeStyleContent = (node) => {
  if (isSvgIconEnabled(node)) {
    return faDom.css()
  }
  return ''
}
github FortAwesome / ember-fontawesome / index.js View on Github external
}
        },
        plugins: [
          resolve()
        ]
      },
      nodeModulesPath: this._nodeModulesPath,
      name: 'fontawesome-svg-core'
    })

    const autoLibraryNode = new FontAwesomeAutoLibrary([], {
      icons: this.fontawesomeConfig.icons,
      output: 'autoLibrary.js'
    })

    const fontawesomeStyles = writeFile('fontawesome.css', dom.css());

    return new MergeTrees([
      vendorTree,
      fontawesomeRollup,
      autoLibraryNode,
      ...iconRollups,
      fontawesomeStyles
    ]);
  },