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
feat(info): new features #1007
feat(info): new features #1007
Conversation
@rishabh3112 could you take this out for a manual spin? |
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
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.
@pranshuchittora nice work!
Did a quick black-box test on it, few things:
-
output modifiers aren't working as expected, they give the same tabular output every time.
commands I tested on
webpack-cli info ./webpack.config.js --output-markdown
webpack-cli info ./webpack.config.js --output-json
-
Following commands give no output
webpack-cli info --binaries
webpack-cli info --browsers
webpack-cli info --npmg
webpack-cli info --npmPackages
( Oldinfo
shows me those in same project )
- Following flags are raised invalid
webpack-cli info -b
webpack-cli info -s
(--b
and--s
are valid, but gives no output)
plus tabular output gives function definitions for options that receive a function as the value.
┌─────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Config │ webpack.config.js │
├─────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ entry │ ./src │
├─────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ plugins │ - │
│ │ name: HtmlWebpackPlugin │
│ │ options: │
│ │ template: /webpack/play/src/index.html │
│ │ templateParameters: function templateParametersGenerator (compilation, assets, options) { │
│ │ return { │
│ │ compilation: compilation, │
│ │ webpack: compilation.getStats().toJson(), │
│ │ webpackConfig: compilation.options, │
│ │ htmlWebpackPlugin: { │
│ │ files: assets, │
│ │ options: options │
│ │ } │
│ │ }; │
│ │ } │
│ │ filename: index.html │
│ │ hash: false │
│ │ inject: true │
│ │ compile: true │
│ │ favicon: false │
│ │ minify: │
│ │ collapseWhitespace: true │
│ │ removeComments: true │
│ │ removeRedundantAttributes: true │
│ │ useShortDoctype: true │
│ │ cache: true │
│ │ showErrors: true │
│ │ chunks: all │
│ │ excludeChunks: │
│ │ (empty array) │
│ │ chunksSortMode: auto │
│ │ meta: │
│ │ title: Webpack App │
│ │ xhtml: false │
├─────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ module │ rules: │
│ │ - │
│ │ test: │
│ │ lastIndex: 0 │
│ │ use: │
│ │ - │
│ │ loader: /webpack/play/node_modules/mini-css-extract-plugin/dist/loader.js │
│ │ - css-loader │
│ │ - │
│ │ loader: postcss-loader │
│ │ options: │
│ │ ident: postcss │
│ │ plugins: │
│ │ - function creator() { │
│ │ var transformer = initializer.apply(void 0, arguments); │
│ │ transformer.postcssPlugin = name; │
│ │ transformer.postcssVersion = new _processor.default().version; │
│ │ return transformer; │
│ │ } │
│ │ - function creator() { │
│ │ var transformer = initializer.apply(void 0, arguments); │
│ │ transformer.postcssPlugin = name; │
│ │ transformer.postcssVersion = new _processor.default().version; │
│ │ return transformer; │
│ │ } │
└─────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
I am not able to find the |
Are you able to sort this out now? If not, I can send you my setup. |
It's at root in |
@pranshuchittora Thanks for your update. I labeled the Pull Request so reviewers will review it again. @rishabh3112 Please review the new changes. |
Continuation of => #833
Why new PR?
Let's start fresh.