Skip to content

Webpack Documenation Error - "Cleaning up the dist folder" #2738

Closed

Description

@methodbox

OS: Windows 10
Node: 8.10.0
npm: 6.5.0
Webpack: 4.28.1
clean-webpack-plugin: 1.0.0

There is an error in the documentation which will lead to clean-webpack-plugin not executing the intended behavior.

The documentation is found here: https://webpack.js.org/guides/output-management/#cleaning-up-the-dist-folder

...
plugins: [
+     new CleanWebpackPlugin(['dist']),
...
],

Using just dist will not actually clean the dist folder. Modifying this to dist/* will do the trick.

Activity

  1. transferred this issue fromwebpack/webpackon Dec 25, 2018
  2. montogeek commented on Dec 26, 2018

    @montogeek
    Contributor

    Send a PR with its correction please.

  3. methodbox commented on Dec 27, 2018

    @methodbox
    Author

    I'd definitely like to contribute in some way, but I'm not actually sure how to do that for documentation. Can you clarify and I'd be happy to learn and submit the PR?

  4. EugeneHlushko commented on Dec 31, 2018

    @EugeneHlushko
    Contributor

    Hi @methodbox
    You would need to fork the repo and then fork from master into a branch e.g. issues/2738, after that modify the file with the discussed above contents, commit your change and submit a pull request. If you want i can add such PR and mention you as collaborator to save some time on delivery if you are busy or still not sure how to do it and need time to learn :)

  5. methodbox commented on Dec 31, 2018

    @methodbox
    Author

    @EugeneHlushko

    That would be awesome as a head start, but let me give it a shot first.

    Thanks!

  6. added a commit that references this issue on Feb 21, 2019
  7. anshumanv commented on Apr 20, 2019

    @anshumanv
    Contributor

    This seems fixed now. ✨

  8. jeffin143 commented on Dec 2, 2019

    @jeffin143
    Contributor

    @montogeek , Done with this too 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions