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

webpack-config / webpack-partial / 171
98%

Build:
DEFAULT BRANCH: master
Ran 26 May 2017 12:36AM UTC
Jobs 3
Files 7
Run time 18s
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
171

Pull #41

travis-ci

web-flow
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},
  };
});
```
Pull Request #41: Advanced loader functionality.

40 of 40 branches covered (100.0%)

159 of 159 relevant lines covered (100.0%)

3.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 171.1 26 May 2017 12:37AM UTC 0
100.0
Travis Job 171.1
2 171.2 26 May 2017 12:36AM UTC 0
100.0
Travis Job 171.2
3 171.3 26 May 2017 12:36AM UTC 0
100.0
Travis Job 171.3
Source Files on build 171
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #171
  • Pull Request #41
  • PR Base - master (#150)
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