Using PrimeNG with Angular-cli ng build--prod error

UI Components for Angular
Post Reply
fdoliveira
Posts: 4
Joined: 23 Jul 2016, 15:53

03 Aug 2016, 17:57

Hello everybody,

I try to use ng build --prod to geneate deployment of my project but .js files of primeng and primeui dont be generate on /dist folder, looking angular-cli-build.js and system-config.ts files version of Angular-cli and PrimeNG Setup config they are very different. What is the correct file configuration of angular-cli-build.js and system-config.ts to generate prod version of my project?

Best Regards,
François Oliveira

Mateen
Posts: 1
Joined: 09 Aug 2016, 13:30

09 Aug 2016, 13:43

Hi,

In system-config.ts

/** Map relative paths to URLs. */
const map: any = {
'primeng': 'vendor/primeng'
};

/** User packages configuration. */
const packages: any = {
'primeng': { defaultExtension: 'js' }
};

And in angular-cli-build.js
'primeng/**/*.js',
'primeui/**/*.js'

Add the above in the array.

Please do ng build after adding these.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests