🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@analogstudiosri/greenwood-plugin-font-awesome

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@analogstudiosri/greenwood-plugin-font-awesome

A Greenwood plugin for managing Font Awesome related dependencies for building and development.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

greenwood-plugin-font-awesome

GitHub release GitHub Actions status GitHub issues GitHub license

Overview

A Greenwood plugin for managing Font Awesome related dependencies and assets for building and development.

This plugin is useful because Font Awesome references its font files relatively.

@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

This means that these paths need to be resolved specifically to the right location in node_modules where the Font Awesome package is located. Additionally, this plugin ensures the font files are copied as part of the build process.

Installation

This plugin defines the following peerDependencies, so please make sure you already have them installed first

  • @greenwood/cli@^0.20.0
  • font-awesome@^4.6.3

Install the plugin using your preferred package manager

# npm
$ npm install @analogstudiosri/greenwood-plugin-font-awesome --save-dev

# yarn
$ yarn add @analogstudiosri/greenwood-plugin-font-awesome --dev

Usage

Simply add this to the plugins array of your greenwood.config.js

import { greenwoodPluginFontAwesome } from 'greenwood-plugin-font-awesome';

export default {
  plugins: [
    ...greenwoodPluginFontAwesome() // notice the spread ... !
  ]
}

Keywords

Greenwood

FAQs

Package last updated on 17 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts