# atom-loader

> Atom component loader for [Webpack](http://webpack.github.io).

Under Development

It allows you to write your components in this format:

```
<template>
    <h2 class="red">{{msg}}<child /></h2>
</template>

<script type="config">
    {
        data: {
            msg: 'Hello from Component A!'
        },
        components: {
            'child': './child'
        }
    }
</script>

<style>
.red {
  color: #f00;
}
</style>
```

## Usage

```

const AtomLoaderPlugin = require('atom-loader/lib/plugin');

module.exports = {
    module: {
        rules: [
            {
                test: /\.atom$/,
                loader: 'atom-loader'
            }
        ]
    },
    plugins: [
        new AtomLoaderPlugin()
    ]
}

```

## Thanks

* [vue-loader](https://github.com/vuejs/vue-loader)
* [san-loader](https://github.com/ecomfe/san-loader)

## License

[MIT](http://opensource.org/licenses/MIT)
