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
Using PrimeNG with Angular-cli ng build--prod error
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.
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 20 guests