Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOption 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.jsonwill be created in Webpack bundle output directory.