Skip to content
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

adding CleanWebpackPlugin #592

Closed
morriq opened this issue May 16, 2016 · 3 comments
Closed

adding CleanWebpackPlugin #592

morriq opened this issue May 16, 2016 · 3 comments

Comments

@morriq
Copy link

morriq commented May 16, 2016

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

In webpack.common.js

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

IAMtheIAM commented May 16, 2016

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

@morriq
Copy link
Author

morriq commented May 16, 2016

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

@morriq morriq closed this as completed May 16, 2016
@IAMtheIAM
Copy link

You're Welcome :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants