@deg-skeletor/plugin-rollup
A Skeletor plugin to bundle Javascript modules.
Last updated 2 months ago by scheul93 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @deg-skeletor/plugin-rollup 
SYNC missed versions from official npm registry.

Skeletor Rollup Plugin

Build Status

The purpose of this plugin is to bundle modules together using Rollup. This plugin is part of the Skeletor ecosystem. To learn more about Skeletor, go here.

Installation

Install this plugin into your Skeletor-equipped project via the following terminal command:

    npm install --save-dev @deg-skeletor/plugin-rollup

Configuration

The configuration for this plugin mimics the standard configuration patterns for Rollup (learn more here).

Example Configuration - Single Bundle

{
    
    input: "source/js/main.js",        
    output: [
        {
            file: "dist/js/main-bundle.js",
            format: "es"
        },
        {
            file: "dist/js/main-bundle-nomodule.js",
            format: "system"
        }
    ],
    plugins: [
        require('rollup-plugin-babel')({
            exclude: 'node_modules/**'
        }),
        require('rollup-plugin-node-resolve')({
            browser: true
        }),
        require('rollup-plugin-commonjs')()
    ]
}

Example Configuration - Multiple Bundles

[
    {   
        input: "source/js/entryA.js",        
        output: [{
            file: "dist/js/entryA-bundle.js",
            format: "es"
        }]
    },
    {   
        input: "source/js/entryB.js",        
        output: [{
            file: "dist/js/entryB-bundle.js",
            format: "es"
        }]
    }
]

Example Configuration - Multiple Bundles With Code Splitting

{
    input: ["source/js/entryA.js", "source/js/entryB.js"],        
    output: [
        {
            dir: "dist/js",
            format: "es"
        },
        {
            dir: "dist/js/nomodule",
            format: "system"
        }
    }]
}

For a detailed list of configuration options, check out Rollup's big list of options.

Current Tags

  • 3.0.0                                ...           latest (2 months ago)

10 Versions

  • 3.0.0                                ...           2 months ago
  • 2.0.3                                ...           5 months ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 14
Last Day 0
Last Week 12
Last Month 19
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |