Comments (10)
Experiencing the same issue as mentioned in webpack-contrib/mini-css-extract-plugin#38, have narrowed the issue down to this plugin.
ERROR in chunk main [entry]
main-86b47c44b7412f8548be.css
Cannot read property 'chunkFilename' of undefined
from chunk-manifest-webpack-plugin.
#59 we can use this, which support webpack 4.8.3 +
from chunk-manifest-webpack-plugin.
I ended up removing my dependency on this package in favour of using HtmlWebpackPlugin
with the following configs:
// webpack.config.js
...
plugins: [
new HtmlWebpackPlugin({
filename: 'webpack-common-manifest.json',
template: 'manifest/template.html',
inject: false,
}),
],
<%# manifest/template.html %>
<%= JSON.stringify(webpack.assetsByChunkName) %>
This produced a JSON manifest referencing all chunks. You can use any of the other options for HtmlWebpackPlugin
to select or exclude chunks, order, etc.
from chunk-manifest-webpack-plugin.
Yes please, webpack 4 looks like it has many good features, we need chunk manifest plugin :-)
from chunk-manifest-webpack-plugin.
@malectro's branch seems to address this https://github.com/malectro/chunk-manifest-webpack-plugin/tree/webpack-4
from chunk-manifest-webpack-plugin.
Any update on this issue? Waiting to use it with webpack 4.
from chunk-manifest-webpack-plugin.
@fightingtheboss, is some part of that configuration missing? What makes webpack -object accessible from that template.html?
from chunk-manifest-webpack-plugin.
That variable is provided by HtmlWebpackPlugin
while rendering the template. You can see documentation on that at the bottom of this section: https://github.com/jantimon/html-webpack-plugin#writing-your-own-templates
Turns out there's a much simpler solution to this problem though, simply use this plugin: https://github.com/danethurber/webpack-manifest-plugin. No need for a custom template in that case.
from chunk-manifest-webpack-plugin.
Ah! So it seems! I somehow missed that assuming it was solely for stats -object! Thanks for the trick! :) Unfortunately webpack-manifest-plugin
is out of scope for me, since it has another compatibility issues currently related to my other configs (mainly splitChunks: 'all'
).
from chunk-manifest-webpack-plugin.
Can we get one of the pr's for this merged in. Some look better than others... Can't even npm install after upgrading to npm4 or 5.
from chunk-manifest-webpack-plugin.
Related Issues (20)
- UNMET PEER DEPENDENCY [email protected] HOT 2
- Write to .js instead of .json HOT 4
- Chunk manifest not updated when using webpack-dev-server HOT 2
- it get a useless json? HOT 1
- webpack-core is obsolete for webpack 2; use webpack-sources to get RawSource
- Getting "Chunk.entry was removed." on master HOT 1
- inlineManifest HOT 1
- TypeError: window.webpackManifest is undefined
- Module name instead of module Id in output HOT 1
- Incorrect peer dependency for Webpack v3.0.0 HOT 1
- Updating to v1.1.1 broke my build
- Error in chunk manifest[entry] HOT 2
- 1.1.2 outputs .json file instead of .js file HOT 12
- Upgrading to v1.1.2 break inlining the manifest in HTML HOT 2
- vendor chunk contains manifest file [since 1.1.2] HOT 2
- include manifest.json even when inlineManifest set to true
- Сomparison with DllPlugin and webpack-manifest-plugin
- Why is _.replace used if no string parameter is specified? HOT 1
- Add in manifest key by name or id chunk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chunk-manifest-webpack-plugin.