Skip to content

enlightenmentor/rollup-plugin-weblinks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-weblinks

Plugin for Rollup to bundle web-based resources

This is how you can use it:

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

// see below for details on the options
const inputOptions = {
  input: 'https://raw.githubusercontent.com/enlightenmentor/pc-build/master/public/app.js',
  plugins: [ weblinks() ]
};
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();

About

Plugin for Rollup to bundle web-based resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published