• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

webpack-config / webpack-partial / 170 / 3
100%
master: 98%

Build:
Build:
LAST BUILD BRANCH: webpack-4
DEFAULT BRANCH: master
Ran 26 May 2017 12:35AM UTC
Files 7
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 May 2017 12:32AM UTC coverage: 100.0%. Remained the same
170.3

push

travis-ci

izaakschroeder
Advanced loader utility functions.

Add `append`, `prepend`, `find`, `remove` and `update` to loader utilities which allow you to modify the loaders in an existing `webpack` configuration as well as control the order in which they are added.

```js
// Typical setup.
const x = loader({loader: 'my-loader'});
const config = x({});

// Can now modify.
const updateExclude = loader.update(
  ({loader}) => loader === 'my-loader',
  (loader) => ({
    ...loader,
    exclude: /bar/,
  }
));
const newConfig = updateExclude(config);
```

Also supports functions as loader generators which allow you to generate your loader based off the current `webpack` configuration.

```js
const x = loader((config) => {
  return {
    loader: 'foo-loader',
    query: {path: config.output.publicPath},
  };
});
```

40 of 40 branches covered (100.0%)

159 of 159 relevant lines covered (100.0%)

1.06 hits per line

Source Files on job 170.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 170
  • Travis Job 170.3
  • 9bb43ad8 on github
  • Prev Job for on advanced-loader (#168.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc