Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asset-config-webpack-plugin

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-config-webpack-plugin

Preset for font and image webpack loader configurations

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by12.24%
Maintainers
5
Weekly downloads
 
Created
Source

asset-config-webpack-plugin

NPM version Travis Appveyor lerna License Commitizen friendly Prettier

Creating a webpack loader configurations can be quite time consuming.
The asset-config-webpack-plugin is part of the common-config-webpack-plugin suite which tries to provide best practices for the most common loader requirements.

Installation

npm i --save-dev asset-config-webpack-plugin

Webpack Config

The asset-config-webpack-plugin is just a small convince wrapper arround the image-config-plugin and the font-config-plugin npm packages.

const AssetConfigWebpackPlugin = require('asset-config-webpack-plugin');
module.exports = {
    plugins: [
        new AssetConfigWebpackPlugin()
    ]
}

For more control please use the image-config-plugin and/or the font-config-plugin instead of the asset-config-webpack-plugin.

const FontConfigWebpackPlugin = require('font-config-webpack-plugin');
const ImageConfigWebpackPlugin = require('image-config-webpack-plugin');

module.exports = {
    plugins: [
        new FontConfigWebpackPlugin(),
        new ImageConfigWebpackPlugin(),
    ]
}

Keywords

FAQs

Package last updated on 02 Jan 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc