I have been trying to get the build.prod task to create a directory that could be put out on a production server with all of the libraries in the project as part of the dist/prod directory.
For some reason the ng2-material code isn't being properly being copied over. I have tried adding this line to the NPM_DEPENDENCIES in config.ts:
{ src: 'ng2-material/dist/ng2-material.min.js', inject: 'libs', dest: LIB_DEST}
When I do that I am getting a couple of errors about ng2-materials/all.js not being found. If I add this line to the NPM_DEPENDENCIES:
{ src: 'ng2-material/all.js', inject: 'libs', dest: ${LIB_DEST}/ng2-material},
Then I get an error about all the individual component files being missing.
If I, however, take all of the component files and put them by hand into the dist/prod/lib/ng2-material folder, then I can make the app run. I have yet to be able to get a wild card to work in the build system yet, but I am pretty sure that I would rather have the min.js installed instead of the component tree.
I have been trying to get the build.prod task to create a directory that could be put out on a production server with all of the libraries in the project as part of the dist/prod directory.
For some reason the ng2-material code isn't being properly being copied over. I have tried adding this line to the NPM_DEPENDENCIES in config.ts:
{ src: 'ng2-material/dist/ng2-material.min.js', inject: 'libs', dest: LIB_DEST}
When I do that I am getting a couple of errors about ng2-materials/all.js not being found. If I add this line to the NPM_DEPENDENCIES:
{ src: 'ng2-material/all.js', inject: 'libs', dest:
${LIB_DEST}/ng2-material},Then I get an error about all the individual component files being missing.
If I, however, take all of the component files and put them by hand into the dist/prod/lib/ng2-material folder, then I can make the app run. I have yet to be able to get a wild card to work in the build system yet, but I am pretty sure that I would rather have the min.js installed instead of the component tree.