nest-angular icon indicating copy to clipboard operation
nest-angular copied to clipboard

Production release

Open Root-Control opened this issue 7 years ago • 5 comments

I'm on production release but webpack isn't working, can you tell us how can we build in production mode.. thank you in advance

Root-Control avatar Jul 29 '18 23:07 Root-Control

could u provide me with some further explanations? this information is pretty insufficient

bojidaryovchev avatar Jul 30 '18 19:07 bojidaryovchev

Hello! I have same problems. In prod mode i have many error "Cannot find module ..." with zone.js, rxjs and other. I think it becouse webpack doesnt set to prod mode for angular. isn't it? i need pull node modules folder to release container for working in prod.

yofi2tofi avatar Aug 30 '18 15:08 yofi2tofi

I remove nodeExternals plagin from externals and now all good

yofi2tofi avatar Aug 31 '18 06:08 yofi2tofi

@yofi2tofi can you please give a detailed list of steps you took to resolve the issue? Got the same problem here, but still no success on resolving the matter.

NickvdMeij avatar Sep 11 '18 10:09 NickvdMeij

@NickvdMeij hello!

externals: dev ? [
    nodeExternals({
      whitelist: ['webpack/hot/poll?1000']
    })
  ]: [nodeExternals(/^angular-froala-wysiwyg/)]

yofi2tofi avatar Sep 13 '18 11:09 yofi2tofi