webpack-data-url

1.0.4 • Public • Published

webpack-data-url

Pull in remote dependencies that contain data you need before each build.

Getting Started

These instructions will get you up and running with pulling in your data to your project before you compile your Webpack build.

Prerequisites

  • Webpack 4

Installing

  1. Install to your dev-dependencies.
    npm install --save-dev webpack-data-url

Usage

  1. webpack.config.js
    import WebpackDataUrl from 'webpack-data-url';
    
    const config = {
      plugins: [
        new WebpackDataUrl([options]),
      ],
    }

Options

Name Type Default Description
url {String} `` Url that you wish to request data from.
directory {String} ./data.json Directory and name of file you wish to store your data from.

Built With

  • axios - Framework used for network requests.
  • fs - Used for writing to the file system.

Readme

Keywords

Package Sidebar

Install

npm i webpack-data-url

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

5.95 kB

Total Files

5

Last publish

Collaborators

  • eflo11