-
-
Notifications
You must be signed in to change notification settings - Fork 199
Feature configure manifest options #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
3dd69f5
69b0439
68de2b5
3aa7f38
01baa4a
1e23506
ba1d55b
630c2e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,11 +24,14 @@ module.exports = function(plugins, webpackConfig) { | |
| manifestPrefix = webpackConfig.publicPath.replace(/^\//, ''); | ||
| } | ||
|
|
||
| plugins.push(new ManifestPlugin({ | ||
| let defaultConfig = { | ||
| basePath: manifestPrefix, | ||
| // guarantee the value uses the public path (or CDN public path) | ||
| publicPath: webpackConfig.getRealPublicPath(), | ||
| // always write a manifest.json file, even with webpack-dev-server | ||
| writeToFileEmit: true, | ||
| })); | ||
| }; | ||
| let manifestConfig = Object.assign(defaultConfig, webpackConfig.manifestPluginOptions); | ||
|
||
|
|
||
| plugins.push(new ManifestPlugin(manifestConfig)); | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@returns {exports}