1.0.2 • Published 7 years ago

rollup-plugin-weblinks v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

rollup-plugin-weblinks

Plugin for Rollup to bundle web-based resources

This is how you can use it:

const rollup = require('rollup');
const rollupPluginWeblinks = require('rollup-plugin-weblinks');

const inputOptions = {
  input: 'https://raw.githubusercontent.com/enlightenmentor/pc-build/master/public/app.js',
  plugins: [ rollupPluginWeblinks() ]
};
const outputOptions = {
  file: 'test/bundle.js',
  format: 'iife',
}

async function build() {
  // create a bundle
  const bundle = await rollup.rollup(inputOptions);

  // generate code and a sourcemap
  const { code, map } = await bundle.generate(outputOptions);

  // or write the bundle to disk
  await bundle.write(outputOptions);
}

build();
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago