0.0.1 • Published 6 years ago

chordpro-loader v0.0.1

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

chordpro-loader

chordpro-loader for webpack using a fork of chordprojs.

Installation

yarn add chordpro-loader

Usage

This loader uses a fork of chordprojs to transform chordpro files into the JSON format:

{
  "html": "..unstyled html..",
  "parseResult": {}
}

Here is a default style to use with the generated html chordprojs.css

It's probably best served in conjunction with json-loader

Webpack 2

{
    module: {
        rules: [{
                test: /\.(pro|cho|chordpro)$/,
                use: [
                    {
                        loader: "json-loader"
                    },
                    {
                        loader: "chordpro-loader",
                    }
                ]
            }]
    }
}

License

MIT