Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const fontAwesomeStyle = (node) => {
if (isSvgIconEnabled(node)) {
return `<style>
${faDom.css()}
</style>`
}
return ''
}
const fontAwesomeStyleContent = (node) => {
if (isSvgIconEnabled(node)) {
return faDom.css()
}
return ''
}
}
},
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
]);
},