preboot/angular-webpack

"webpack -p" creates bigger dist folder

phil123456 opened this issue · 3 comments

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

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.

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

kdud commented

Does your sourceMap: false in webconfig..?