Consume bpmnlint config files with webpack.
import { Linter } from 'bpmnlint';
import linterConfig from './.bpmnlintrc';
const linter = new Linter(linterConfig);
npm i bpmnlint-loader -D
Configure the loader in your webpack.config.js
.
module.exports = {
// ...
module: {
rules: [
{
test: /\.bpmnlintrc$/,
use: [
{
loader: 'bpmnlint-loader',
}
]
}
]
}
};
This will ensure that bpmnlint configuration files can be consumed by your build.
MIT