🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@dicebear/avatars-webpack-config

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dicebear/avatars-webpack-config

Webpack config generator for DiceBear Avatars sprite collections

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Build Status npm

This package provides a standard webpack configuration for DiceBear Avatars sprite collections.

Installation

npm install --save-dev @dicebear/avatars-webpack-config

Usage

// webpack.config.js

var avatarsWebpackSprites = require('@dicebear/avatars-webpack-config');

var name = 'your-sprite-set-name';
var options = {
  // See below for default options
};

let config = avatarsWebpackSprites(spriteSetName, options);

module.exports = [config.node, config.web.dev, config.web.prod];

If you use Typescript, you can optionally add the following option in your tsconfig.json

{
  "extends": "./node_modules/@dicebear/avatars-webpack-config/tsconfig.json",
  "include": ["./src/"]
}

Options

dirname

Default: process.cwd()

Your project root directory.

entry

Default: ./src/sprites.ts

Your project entry file relative to directory.

output.path.web

Default: ./dist

Output path for compiled web (browser) version relative to directory.

output.path.node

Default: ./lib

Output path for compiled node version relative to directory.

output.path.name

Default: sprites

Output filename without suffix (i.e. .min) and file extension (.js).

FAQs

Package last updated on 10 Apr 2018

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