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

webpack-config / webpack-partial / 168
100%
master: 98%

Build:
Build:
LAST BUILD BRANCH: webpack-4
DEFAULT BRANCH: master
Ran 26 May 2017 12:33AM UTC
Jobs 2
Files 7
Run time 54s
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

pending completion
168

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(x, (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%)

2.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 168.1 26 May 2017 12:34AM UTC 0
100.0
Travis Job 168.1
2 168.2 26 May 2017 12:33AM UTC 0
100.0
Travis Job 168.2
Source Files on build 168
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #168
  • 9654e452 on github
  • Prev Build on advanced-loader (#164)
  • Next Build on advanced-loader (#170)
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