Skip to content

adding CleanWebpackPlugin #592

Description

@morriq

Could we add it to starter? https://github.com/johnagan/clean-webpack-plugin

In webpack.common.js

new CleanWebpackPlugin(['*'], {
      root: helpers.root('dist')
    }),

Activity

  1. IAMtheIAM commented on May 16, 2016

    @IAMtheIAM

    You could do the same with just NPM scripts. Just add a "prestart" task, and add a "clean:dist" task

        "prestart": "npm run clean:dist",
        "clean:dist": "npm run rimraf -- dist",
    

    Now anytime you execute start, it will clean the "dist" folder first

  2. morriq commented on May 16, 2016

    @morriq
    Author

    Nice :). Thx. I have made this modification.

  3. IAMtheIAM commented on May 16, 2016

    @IAMtheIAM

    You're Welcome :-)

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions