-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Option to change the output directory #185
Comments
Did you try using |
You can also pass an absolute filepath for |
Let me know if these solutions work for you, or if you have additional questions. I'm going to close this issue for now as I think we already support what you're asking |
Thx, it is working as expected. It wasn't clear. I should have test it before. Thx. |
This pull request should add that we can be able to define the absolute paths to generate the statsFileName or reportFileName. Relates to webpack-contrib#186 webpack-contrib#185
This pull request should add that we can be able to define the absolute paths to generate the statsFileName or reportFileName. Relates to webpack-contrib#186 webpack-contrib#185
This pull request should add that we can be able to define the absolute paths to generate the statsFileName or reportFileName. Relates to webpack-contrib#186 webpack-contrib#185
Issue description
I want to create a new folder called reports, which should not be part of the output.path of the webpack bundle. It should be a separate path, that I can choose with an option, to generate the stats.json file there.
Technical info
Debug info
How do you use this module? As CLI utility or as plugin?
As a plugin, with options
If CLI, what command was used? (e.g.
webpack-bundle-analyzer -O path/to/stats.json
)webpack-bundle-analyzer ./dist/stats.json (Only for reading the generated file with a custom npm script.)
If plugin, what options were provided? (e.g.
new BundleAnalyzerPlugin({ analyzerMode: 'disabled', generateStatsFile: true })
)What other Webpack plugins were used?
CopyWebpackPlugin
SpriteLoaderPlugin
It would be nice to also attach webpack stats file.
It can be generated using these options:
stats.json
will be created in Webpack bundle output directory.The text was updated successfully, but these errors were encountered: