Skip to content

mariusGundersen/w3c-manifest-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?name=[name].[hash].[ext]&icon=icons/[name].[hash].[ext]&legacyAppleSupport=true'
      }
    ]
  }
}

Query Parameters

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

License

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

About

W3C manifest.json loader for webpack

Resources

License

Stars

Watchers

Forks

Packages

No packages published