1.2.4 • Published 6 years ago

w3c-manifest-loader v1.2.4

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

w3c-manifest-loader

npm Version MIT License

Load a W3C manifest file into the page

Install

$ npm install w3c-manifest-loader --save-dev

Usage

Documentation: Using loaders

Import the manifest.json file in your main file (probably where you import your css).

// using ES2015
import './manifest.json';

// or using CommonJS
require('./manifest.json');

And configure the loader for manifest.json files in your webpack config file:

{
  module: {
    loaders: [
      {
        test: /manifest\.json$/,
        loader: 'w3c-manifest',
        type: 'javascript/auto',
        options: {
          name: '[name].[hash].[ext]',
          icon: '/icons/[name].[hash].[ext]',
          legacyAppleSupport: true
        }
      }
    ]
  }
}

Options

These are common options you can specify in the loaders config.

License

This software is free to use under the MIT license. See the LICENSE-MIT file for license text and copyright information.

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago