Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

bartsmykla/generate-plist-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generate-plist-webpack-plugin

Webpack plugin to generate a custom Plist asset from JavaScript's objects or JSON's

Installation

yarn add -D generate-plist-webpack-plugin

Usage

// webpack.config.js
const GeneratePlistPlugin = require('generate-plist-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    // ...
    new GeneratePlistPlugin('my-file.plist', {
      foo: 'bar'
    })
  ]
  // ...
};

This will create a file my-file.plist in webpack's output directory, with contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>foo</key>
    <string>bar</string>
  </dict>
</plist>'

About

Webpack plugin to generate a custom Plist asset

Resources

Stars

Watchers

Forks

Packages

No packages published