preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 557 forks source link

"webpack -p" creates bigger dist folder #338

Open phil123456 opened 7 years ago

phil123456 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

kdud commented 7 years ago

Does your sourceMap: false in webconfig..?