atom-loader

4.0.2 • Public • Published

atom-loader

Atom component loader for Webpack.

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

License

MIT

/atom-loader/

    Package Sidebar

    Install

    npm i atom-loader

    Weekly Downloads

    7

    Version

    4.0.2

    License

    MIT

    Unpacked Size

    124 kB

    Total Files

    15

    Last publish

    Collaborators

    • cxtom