Socket
Socket
Sign inDemoInstall

build-plugin-sto-load-assets

Package Overview
Dependencies
52
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    build-plugin-sto-load-assets

build-plugin-sto-load-assets


Version published
Maintainers
2
Install size
4.50 MB
Created

Readme

Source

build-plugin-sto-load-assets

build-plugin-sto-load-assets

Getting Started

installation

Add via npm

$ npm install build-plugin-sto-load-assets --save-dev
Usage
  • Import build-plugin-sto-load-assets in your webpack config file
import BuildPluginStoLoadAssets from 'build-plugin-sto-load-assets';

webpack.config.js file
  ...
  plugins: [
    ...other plugin
    new BuildPluginStoLoadAssets()
  ],

  • build-plugin-sto-load-assets download folder is assets and default extension file ['jpg', 'gif', 'png', 'jpeg'], you can extension file or change download dir;
import BuildPluginStoLoadAssets from 'build-plugin-sto-load-assets';

webpack.config.js file
  ...
    externals: {
        download: {
            dir: 'assets',
            extra: ['png', 'svg']
        }
    },

Keywords

FAQs

Last updated on 21 Jan 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc