Skip to content

mateuszsikora/ohm-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ohm-loader

Build Status dependencies Status

Ohm loader for webpack

Installation

npm install --save-dev ohm-loader

Usage

webpack.config.js

{
  module: {
    rules: [{
      test: /\.ohm$/,
      loader: 'ohm-loader'
    }]
  }
}

file.js

import grammar from 'file.ohm'
grammar.match(...);

or if the file contains more than one grammar

import {CSV, Json} from 'file.ohm'
CSV.match(...);

About

Ohm loader for webpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published