How to build angular 2 app with npm to output directory and prevent webpack or any bundling?

We have a software production line (SPL) and we recently updated our client platform to use Angular 2, but due to a lot of problems we couldn't go for TypeScript, so we had to migrate to ES5 versions of Angular 2.

We're not very good at TypeScript and npm etc., so this is where we're stuck.

Say you downloaded / bought the admin template for Angular 2 (material 2) and it is a very basic and regular Angular 2 app.

You can npm install

install dependencies and modules and npm start

have them displayed in the browser.

However, npm start

what happens is that npm builds everything (I don't know where it puts the build output) and bundles everything and in the browser all we see is 9MB vendor.js and everything else is bundled. This is not what we want.

We want to be able to simply compile / migrate TypeScript in a given template to the output folder and disable the webpack or any other mechansim bundle bundling.

What should we do?

This is the template we bought:

https://themeforest.net/item/fury-angular-2-material-design-admin-template/19325966

+3


source to share





All Articles