-
Notifications
You must be signed in to change notification settings - Fork 81
Multi-compiler mode #19
Comments
Aright so it seems that the deal is with the Unless I am missing some functionality that webpack can provide |
Not related to the stats plugin, but webpack/webpack-dev-server#641 is also an issue with webpack-rails in multi-compiler mode. |
Relevant issue unindented/stats-webpack-plugin#13. I wonder if it might be sufficient to simply switch dependency to webpack-manifest-plugin. It seems to just output the content of So, something like this:
{
errors: [/*...*/],
warnings: [/*...*/],
version: '<some-version>',
hash: '<some-hash>',
publicPath: 'localhost:3000/assets',
assetsByChunkName: {
main: 'main.js',
admin: 'admin.js'
},
assets: [{ name: 'main.js', size: 234 }, { name: 'admin.js', size: 234 }],
chunks: [/*...*/],
chunkNames: [/*...*/],
children: [/*...*/]
}
{
main: 'localhost:3000/assets/main.js',
admin: 'localhost:3000/assets/admin.js'
} So provided all we care about is |
Oh, totally missed this: new StatsPlugin('manifest.json', {
// We only need assetsByChunkName
chunkModules: false,
source: false,
chunks: false,
modules: false,
assets: true
})] Perfect. |
This may very well be an issue with webpack and not webpack rails but when using multi compiler mode (https://github.com/webpack/webpack/tree/master/examples/multi-compiler) the manifest that rails reads gets overwritten by each "compile target" so only one package is available in the manifest.
Any way to have both in the manifest? There seems to be a mention of it here: https://www.npmjs.com/package/webpack-manifest-plugin but I have no idea what "pass a shared
{}
to cache option" really meansThe text was updated successfully, but these errors were encountered: