This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

chrome-url-loader

1.2.0 • Public • Published

chrome-url-loader

Chrome Extension URL loader for webpack.

This loader links to the file appropriately, using chrome.extension.getURL and also creates the file for you in the specified output dir.

Usage

Use the loader as you would any other one, specify the test files and options:

{
  loader: require.resolve('chrome-url-loader'),
  test: /\.(png|svg|jpe?g|bmp|gif)/i,
  options: {
    publicDir: 'build/static/images',
    baseDir: paths.appSrc
  }
}

Options

  • baseDir (optional) - Your absolute source root directory (e.g. /path/to/src). Defaults to current working directory.
  • publicDir - The output dir to save the file to (e.g. build/static/media)

/chrome-url-loader/

    Package Sidebar

    Install

    npm i chrome-url-loader

    Weekly Downloads

    2

    Version

    1.2.0

    License

    Apache-2.0

    Unpacked Size

    14.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • casraf