chordpro-loader for webpack using a fork of chordprojs.
yarn add chordpro-loader
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
{
module: {
rules: [{
test: /\.(pro|cho|chordpro)$/,
use: [
{
loader: "json-loader"
},
{
loader: "chordpro-loader",
}
]
}]
}
}