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

"webpack -p" creates bigger dist folder #338

Open
phil123456 opened this issue Apr 24, 2017 · 3 comments
Open

"webpack -p" creates bigger dist folder #338

phil123456 opened this issue Apr 24, 2017 · 3 comments

Comments

@phil123456
Copy link

Hello,

I tried to apply stuffs I learned from a tutorial, using -p as a webpack option

"build":      "rimraf dist && webpack --progress --profile --bail",
"build:prod": "rimraf dist && webpack -p",

I was wondering why "build:prod" did create a bigger dist folder content compared to the "build" command

also, it is incredibly hard to find angular 2/webpack tutorials that matches the content of the files in this seed, so if one could enlight me on where to find tutorials on webpack that would use the same files/folders/webpack config ... I feel like all the tutorials I find are way outdated

thanks

@Foxandxss
Copy link
Member

I get the same size with both of those.

The important bit on Webpack is to learn what every loader & plugin does. More than a focused tutorial in how to build your own config. People have different ideas and opinions.

@phil123456
Copy link
Author

ok ?? strange I get different results.. thanks anyway

@kdud
Copy link

kdud commented Aug 15, 2017

Does your sourceMap: false in webconfig..?

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

3 participants