Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Add support for multi compile mode #14

Merged
merged 2 commits into from
Mar 2, 2017
Merged

Add support for multi compile mode #14

merged 2 commits into from
Mar 2, 2017

Conversation

PMCorbett
Copy link
Contributor

@PMCorbett PMCorbett commented Mar 2, 2017

Adds support for webpack multi compile mode by adding a cache object.

Fixes this issue: #13

Example Usage:

var StatsPlugin = require('stats-webpack-plugin');

var cache = {};

var config = [{
  ...
  plugins: [
    new StatsPlugin(
      'manifest.json', 
      {
        chunkModules: false,
        source: false,
        chunks: false,
        modules: false,
        assets: true
      }, 
      cache: cache
    )
  ]
  ...
}];

@PMCorbett
Copy link
Contributor Author

This should also fix this issue mipearson/webpack-rails#19

test/plugin.js Outdated
@@ -32,6 +32,38 @@ var defaultCompilerOptions = {
]
}

var mulitCompilerOptions = (cache) => [{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo mulit?

@unindented
Copy link
Owner

Comment about a minor typo, but looks good to me otherwise. If you fix it, I'll merge and publish a new version.

@PMCorbett
Copy link
Contributor Author

Good catch, I've fixed that

@unindented unindented merged commit 91fb22f into unindented:master Mar 2, 2017
@unindented
Copy link
Owner

Pushed v0.5.0 with your changes. It'll be on npm once Travis does its thing.

@unindented
Copy link
Owner

Thank you for your help! 👏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants