Skip to content

oztexan/chordpro-loader

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published