@elricb/webpack-add-assets

0.0.2 • Public • Published

webpack-add-assets

Plugin for webpack.

Add additional assets to webpack build directory.

Requirements

Install

$ npm install --save-dev @elricb/webpack-add-assets

Example

const WebpackAddAssets = require("@elricb/webpack-add-assets");

const webpackConfig = {
  // Config items
  plugins: [
    new WebpackAddAssets({
      "local/path/file.txt": "remote/path/file.txt"
    })
  ],
  // Config items
};

class WebpackAddAssets

const webpackAddAssets = new WebpackAddAssets(assets);

assets

Type: object

A key/value list of source files to destination files.

{
  "relative/local/path/to/asset/favicon.gif": "relative/destination/path/to/asset/favicon.gif",
  "another/local/asset/favicon.ico": "another/destination/asset/favicon.gif"
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.20
0.0.10

Package Sidebar

Install

npm i @elricb/webpack-add-assets

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

348 kB

Total Files

7

Last publish

Collaborators

  • elricb