bsc

broccoli-sourcemap-concat

Fast, caching broccoli filter that generates & propagates source maps.

Showing:

Popularity

Downloads/wk

4.5K

GitHub Stars

7

Maintenance

Last Commit

6yrs ago

Contributors

6

Package

Dependencies

6

Size (min+gzip)

39.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

DEPRECATION WARNING

Active development of this library has moved to ember-cli/broccoli-concat.

Broccoli concatenator that generates & propagates sourcemaps

Build Status Build status

This filter is designed to be fast & good enough. It can generates source maps substantially faster than you'll get via mozilla/source-map, because it's special-cased for straight line-to-line contenation.

It discovers input sourcemaps in relative URLs, including data URIs.

Usage

var node = concat(node);

Advanced Usage

var node = concat(node, {
  outputFile: '/output.js',
  header: ";(function() {",
  headerFiles: ['loader.js'],
  inputFiles: ['**/*']
  footerFiles: ['auto-start.js'],
  footer: "}());",
  sourceMapConfig: { enabled: true },
  allowNone: false | true // defaults to false, and will error if trying to concat but no files are found.
});

The structure of output.js will be as follows:

// - header
// - ordered content of the files in headerFiles
// - un-ordered content of files matched by inputFiles, but not in headerFiles or footerFiles
// - ordered content of the files in footerFiles
// - footer

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100