Socket
Socket
Sign inDemoInstall

save-remote-file-webpack-plugin

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    save-remote-file-webpack-plugin

webpack 4 plugin to download & save remote files locally


Version published
Maintainers
1
Created

Changelog

Source

1.0.0 - 2018-10-20

Added

  • Initial release

Readme

Source

How it works

webpack 4 plugin to download & save remote files locally

Usage

const SaveRemoteFilePlugin = require('save-remote-file-webpack-plugin');
module.exports = {
    plugins: [
        new SaveRemoteFilePlugin([
            {
                url: 'http://example.com/some/file.txt',
                filepath: 'local.txt',
            },
        ])
    ]
}

The filepath is relative to your webpack output.path

You can pass in either an object, or an array of objects.

Options

  • url remote URL of the remote file to save locally
  • filepath filename where the file will be saved, relative to your webpack output.path

FAQs

Last updated on 19 Oct 2018

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