Have ideas to improve npm?Join in the discussion! »

    component-webpack-plugin

    0.2.1 • Public • Published

    component for webpack

    Usage

    see an example here: webpack/webpack/examples/component

    var ComponentPlugin = require("component-webpack-plugin");
    module.exports = {
        plugins: [
            new ComponentPlugin();
        ]
    }

    Advanced usage

    var ComponentPlugin = require("component-webpack-plugin");
    module.exports = {
        plugins: [
            new ComponentPlugin({
                // Load xyz field in component.json
                xyz: true,
                // This is equal to: xyz: "[file]"
                
                // Load xyz field with the xyz-loader
                xyz: "!xyz-loader![file]",
                
                // This is default:
                // styles: "!style-loader!css-loader![file]"
            }, [
                // Lookup paths
                "component"
            ]);
        ]
    }

    License

    MIT (http://www.opensource.org/licenses/mit-license.php)

    Keywords

    none

    Install

    npm i component-webpack-plugin

    DownloadsWeekly Downloads

    112

    Version

    0.2.1

    License

    none

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar