4.2.5 • Published 3 years ago

broccoli-concat v4.2.5

Weekly downloads
260,387
License
MIT
Repository
github
Last release
3 years ago

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

const node = concat(node);

Advanced Usage

const 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

Debug Usage

note: this is intended for debugging purposes only, and will most likely negatively affect your build performace is left enabled

Setting the environment variable CONCAT_STATS=true will result a summary of each concatention being output to process.cwd() + 'concat-stats-for/*.json'

Each file within that directory represents a different contenation, and will contain:

  • outputFile – the output file that was created
  • sizes – a summary of each input file, and the associated pre-minified pre-gziped byte size.

Want more details? like uglified or compressed sizes? (or have more ideas) go checkout: https://github.com/stefanpenner/broccoli-concat-analyser

Example:

concat-stats-for/-file.json

{
  "outputFile": "path/to/output/File",
  "sizes": {
    "a.js": 5,
    "b.js": 10,
  }
}

other files:

  • concat-stats-for/-file/a.js
  • concat-stats-for/-file/b.js
@viviedu/ember-sourceember-source-vivi@infinitebrahmanuniverse/nolb-broc@everything-registry/sub-chunk-1264kiwidave-ecfnashtech-angular-cli@vazgentigranich/parlor-glimmer-application-pipelineangular-bro-app@astronomersiva/ember-svg-jarboss-qyapp-common@css-blocks/ember-app@css-blocks/ember-cli@denali-js/eslint@denali-js/clibroccoli-directorybroccoli-dist-es6-modulebroccoli-dslbroccoli-lint-eslintbroccoli-multi-builderbroccoli-test-builderbroccoli-stylelintbroccoli-symbolizerbricks-cli@boundless-inc/mobiledoc-dom-renderercandycane-cli@buschtoens/ember-css-modules@buschtoens/ember-engines@cardstack/boxel@glimmer/application-pipeline@glimmer/buildpixijs-clirwjblue-glammer-engine@crshoverride/react-clidriven-cliember-cli-d3-primitiveember-cli-concatember-animatableember-bundle-i18nember-cliember-cli-asset-sizes-shimember-cli-lintember-component-and-route-cssember-enginesember-novnc-shimember-novnc-shim-sockjsember-cli-pod-stylesember-cli-rollupember-hbs-importsember-cli-file-creatorember-cli-styles-preprocessorember-cli-toranbember-cli-tree-shakerember-cli-template-lintember-fetchember-css-element-queriesember-css-modulesempress-blog-ember-templateember-cli-fastbootember-cli-fastboot-with-full-domember-cli-one-scriptember-scoped-cssember-svg-jarember-sourceember-spriteemberjs-buildember-template-styles-importatomable@gaurav9576/broccoli-lint-eslintdenali-clidenali-eslint@embroider/compat@jakenewby/ember-cliframpton-buildglimmer-application-pipeline-mszglimmer-buildglimmer-engineglimmer-v1-application-pipelineglimmer-application-pipeline@real_ate/fake-embroider-compat
4.2.5

3 years ago

4.2.4

4 years ago

4.2.3

4 years ago

4.2.2

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.7.5

4 years ago

3.7.4

5 years ago

3.7.3

5 years ago

3.7.2

5 years ago

3.7.1

6 years ago

3.7.0

6 years ago

3.6.0

6 years ago

3.5.1

6 years ago

3.5.0

6 years ago

3.4.1

6 years ago

3.4.0

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.3

6 years ago

3.2.2

7 years ago

3.2.1

7 years ago

3.2.0

7 years ago

3.1.1

7 years ago

3.1.0

7 years ago

3.0.5

7 years ago

2.3.8

7 years ago

3.0.4

7 years ago

2.3.7

7 years ago

2.3.6

7 years ago

2.3.5

7 years ago

3.0.3

7 years ago

2.3.4

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

2.3.3

8 years ago

3.0.0

8 years ago

2.3.2

8 years ago

2.3.1

8 years ago

2.3.0

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago

2.1.0

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago