-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Trying out the new webpack-manifest-plugin #164
Conversation
Failures are due to: salesforce/tough-cookie#92... which is unrelated to us, and will hopefully get resolved shortly. |
yeah, too bad that JS regexp does not have possessive quantifiers. In PHP, they would allow fixing the issue very easily (we did such fixes in Symfony). |
I'd keep the file for now with only the export of the real plugin and a const Encore = require('@symfony/webpack-encore');
const ManifestPlugin = require('@symfony/webpack-encore/lib/webpack/webpack-manifest-plugin.js');
// (...)
const config = Encore.getWebpackConfig();
for (const plugin of config.plugins) {
if (plugin instanceof ManifestPlugin) {
// Do something with its config
}
}
module.exports = config; |
Hmm, interesting point - I'm cool with that :). In general, however, we should discourage people from requiring specific files from the lib - these shouldn't be considered part of our public API, unless we advertise using them (like the new PluginPriorities module). |
7376b4b
to
a1c5894
Compare
@weaverryan It looks like Webpack Manifest Plugin 2.0.0 is out :) |
Yeeeeea! @Lyrkan I just fixed conflicts, let's wait for the tests. Can you review the PR one last time to give it a 👍 ? Then we can merge and finish |
@@ -46,6 +46,7 @@ | |||
"webpack": ">=2.2.0 <4", | |||
"webpack-chunk-hash": "^0.5.0", | |||
"webpack-dev-server": "^2.4.5", | |||
"webpack-manifest-plugin": "v2.0.0-rc.1", |
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.
Shouldn't it be "webpack-manifest-plugin": "^2.0.0"
?
0a6e857
to
6657a78
Compare
This PR was squashed before being merged into the master branch (closes #164). Discussion ---------- Trying out the new webpack-manifest-plugin This is not ready to be merged yet... as we should wait for a stable release. But, let's see if the tests pass :). We originally "forked" this library internally due to 2 issues, both of which should have been fixed in version 2 of the library. Should fix #140. TODOS: - Remove the old `webpack-manifest-plugin.js` file entirely and update paths to require the actual library instead of this - Stop passing the `publicPath` option to the plugin, as this is not supported anymore (I believe it's just being ignored right now) Commits ------- 6657a78 using the module directly and removing publicPath option, which is gone 9f7a866 Trying out the new webpack-manifest-plugin
This is not ready to be merged yet... as we should wait for a stable release. But, let's see if the tests pass :). We originally "forked" this library internally due to 2 issues, both of which should have been fixed in version 2 of the library.
Should fix #140.
TODOS:
Remove the old
webpack-manifest-plugin.js
file entirely and update paths to require the actual library instead of thisStop passing the
publicPath
option to the plugin, as this is not supported anymore (I believe it's just being ignored right now)