`ember-cli-funnel` is an Ember CLI addon designed to exclude specific files or directories from an Ember application's build output. It integrates directly into the `ember-cli-build.js` file, allowing developers to define exclusion patterns using glob syntax within the `EmberApp` configuration. The current stable version, 0.6.1, suggests it's still in a pre-1.0 development phase, implying that its API might not be fully stable, though the core functionality of file funnelling via Broccoli is well-established. Its release cadence appears to be driven by contributions and maintenance, as indicated by a recent dependency update in September 2023 despite the low version number. Key differentiators include its straightforward configuration within the standard Ember build process and its ability to dynamically exclude files based on environment variables or Git branch information, providing fine-grained control over the final build artifact size and content for different deployment targets.
npm install ember-cli-funnelVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to configure `ember-cli-funnel` within `ember-cli-build.js` to exclude specific application routes and addon styles from the final build output based on glob patterns and environment.
Explicitly set `enabled: true` within the `funnel` configuration object in `ember-cli-build.js`: `funnel: { enabled: true, exclude: [...] }`.Refer to the project's GitHub releases or changelog for specific breaking changes if upgrading within the 0.x range. It is advisable to pin exact versions (e.g., `"ember-cli-funnel": "0.6.1"`) for stability to avoid unexpected breaking changes.
Thoroughly test exclusion patterns by running `ember serve` and inspecting the `dist/` directory. Use tools like `glob-explorer` or `tree` to visualize path matching. Pay close attention to the distinction between application-specific file paths and those residing within the `addon-tree-output` directory.
`ember-cli-funnel` is an Ember CLI addon that extends the `EmberApp` build options. It is not directly imported into JavaScript files. Ensure it is listed in your `package.json` and that `ember install ember-cli-funnel` has been run.
To apply file exclusions in development or other environments, you must explicitly set `enabled: true` in your `ember-cli-build.js` configuration: `funnel: { enabled: true, exclude: [...] }`.Check the `ember-cli-funnel` GitHub issues and pull requests for any known compatibility issues or updates required for your specific Ember CLI and Node.js versions. Consider using `ember try:each` to test against multiple Ember versions to identify the breaking point.
No dependency data recorded yet.