Vue component loader

dynamically load vue-components based on conventions

Version: 1.1.3 Updated: 03/20/2017

By: strootje License: MPL-2.0

Downloads Last 30 Days: 50

Vue Component Loader

Build Status Coverage Status

Dependencies

Example use

webpack.config.js:

module.exports = {

    // ...

    module: {
        rules: [

            // ...

            {
                test: /\.html$/,
                use: [
                    {
                        loader: 'vue-component-loader',
                        options: {
                            view: { dir: '/path/to/views', ext: 'html' },
                            script: { dir: '/path/to/scripts', ext: 'js' },
                            style: { dir: '/path/to/styles', ext: 'css' }
                        }
                    }
                ]
            }

            // ...
        ]
    }

    // ...

};

Installation

npm install --save-dev vue-component-loader

License

Mozilla Public License, version 2.0

Categories: Vue js
Tags: