1.0.4 • Published 5 years ago

webpack-data-url v1.0.4

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

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

NameTypeDefaultDescription
url{String}|Url that you wish to request data from.
directory{String}./data.jsonDirectory 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.
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago