# tris-loader

![npm](https://img.shields.io/npm/v/tris-loader.svg)
[![build](https://github.com/buxlabs/tris-loader/workflows/build/badge.svg)](https://github.com/buxlabs/tris-loader/actions)

>  tris loader for webpack

## Table of Contents

- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)

## Background

This package holds a webpack loader for the [tris](https://github.com/buxlabs/tris) package.

## Install

```
npm install --save-dev tris-loader
```

## Usage

The loader can be added in the same way as any other webpack loader. You can pass additional plugins to tris.

```js
const ScopedStylesPlugin = require('tris/plugins/scoped-styles')
const PureEnginePlugin = require('tris/plugins/pure-engine')

module.exports = {
  module: {
    rules: [
      {
        test: /\.html$/,
        loader: [
          {
            loader: 'tris-loader',
            options: {
              plugins: [
                new ScopedStylesPlugin(),
                new PureEnginePlugin()
              ]
            }
          }
        ]
      }
    ]
  }
}
```

## Maintainers

[@emilos](https://github.com/emilos).

## Contributing

All contributions are highly appreciated! [Open an issue](https://github.com/buxlabs/tris-loader/issues/new) or a submit PR.

## License

MIT © buxlabs

