New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remote-file-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-file-webpack-plugin

Webpack 4 plugin to download remote files and save them locally

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Remote File Webpack Plugin

What it does

Webpack 4 plugin to download remote files and save them in Webpack compilation, so they can be served locally.

Requirements

  • Webpack 4
  • Node >= 10.12

Install

npm install remote-file-webpack-plugin --save-dev

Usage

const RemoteFilePlugin = require('remote-file-webpack-plugin');

module.exports = {
  plugins: [
    new RemoteFilePlugin([
      {
        url: 'https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Roboto:100,300,400,500,700,900',
        filepath: 'styles/fonts.css',
        cache: true
      },
    ])
  ]
}

Options

You can pass in either an object, or an array of objects for downloading multiple files.

  • url (string): URL of the remote file
  • filepath (string): path, relative to your local output.path, where the file will be saved
  • cache (boolean): wether or not to use cache so you don't have to download same file multiple times (node_modules\.cache\remote-file-webpack-plugin)

Keywords

FAQs

Package last updated on 26 Dec 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

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