Questions tagged [angular2-build]

15 questions
9
votes
2 answers

How to build angular 2 app without cli

I am new in angular 2, I want to know how to build my angular 2 app without using CLI for production. Thanks in Advance.
Shiva
  • 192
  • 1
  • 1
  • 12
4
votes
1 answer

Angular2 why --base-href build option is not working

Now I am trying to build angular2 project with --base-href option, But it is not working well. ng build --bh=/Chamber/frontend/ This is contents of .angular-cli.json { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "project":…
LarAng
  • 1,255
  • 3
  • 18
  • 28
4
votes
1 answer

Can't bundle Angular 2 project with webpack

I am trying to bundle my Angular 2 project in production mode with webpack but I see no dist folder being produced and I am getting the following errors- npm run build angular2-webpack@1.0.0 build C:\Users\Rennie\Projects\tour_of_heroes rimraf…
RSB
  • 111
  • 1
  • 13
2
votes
2 answers

Building Angular2 Application

I'm getting into Angular2. I've created a very simple test project to start testing what I'm learning. Basically this is my project right here: https://github.com/developer82/ReactJS.vs.Angular2/tree/master/angular2 I've started it from a sample…
developer82
  • 13,237
  • 21
  • 88
  • 153
1
vote
0 answers

How to pass config data to NgModule so NgModule will be compiled with AOT

I have a client Angular2 app which will be consuming a 3rd party NgModule app requiring config data. I need to make config values available as a static property of a service that gets called within different areas of the 3rd party NgModule. Client…
Tom Schreck
  • 5,177
  • 12
  • 68
  • 122
0
votes
0 answers

Angular2 : type issue while build for prod

I am trying to build an angular app for prod and get below error. When I tried to ng-serve, everything works fine but gives issue while building. I understood the issue, it is for the passing number instead of a string, but I do not get it where in…
Varun Sukheja
  • 6,170
  • 5
  • 51
  • 93
0
votes
0 answers

HTML Source in Angular2 site

I am getting the weird issue in Angular2 project. Whenever I do ng build from command prompt, I am able to view HTML in view source but If I run on my Apache server after building a project (From dist directory), I can only view part of it. ng…
0
votes
1 answer

Angular 2 production build command line create issue

I use CLI to run command npm build but it is not working
0
votes
0 answers

Angular 2 independent module build consider replacing function

I have one of the most simplest modules, I am trying to make it independent, so that whenever I need it I can just import it very easily. Via NPM. I try to do ng build --prof --aot to compile a complete separate module. However I get this…
Rip3rs
  • 1,284
  • 12
  • 21
0
votes
1 answer

Importing Angular 2 css from npm?

Id like to: npm install some-css-component And then from the corresponding angular 2 component: @Component({ selector: 'some-component', styleUrls: [ 'some-css-component, ...' ] }) Is there a way to configure the angular build to resolve…
Ole
  • 41,793
  • 59
  • 191
  • 359
0
votes
1 answer

Transfer Angular 2 Source Code

I developed an app with Angular 2 and I want to send it to the employer for code review. Is it okay if I just copy and files and folders? If yes which files and folders I should copy? If no, how can I build my application and send it to my employer?
0
votes
1 answer

Module not found while bundling Angular 2 project using Webpack

I'm using WebStorm 2016.3 to create an Angular 2 Project. I've followed this post to bundle my project: https://angular.io/docs/ts/latest/guide/webpack.html When I typed command npm start it showed me a list of errors: I've changed templateUrl in…
Redplane
  • 2,971
  • 4
  • 30
  • 59
0
votes
0 answers

If an Angular 2 project is hosted and running on a server, can we download just HTML and make the changes and view them?

In other words.. if i make changes to just the HTML without pulling down the whole project, will that change be reflected? Is that possible? I would like to know if it is possible to do that without having to follow the normal process ... make…
hga
  • 1
  • 1
  • 1
0
votes
1 answer

Bundling Angular 2 for product with WebStorm 2016.3

I'm developing a small web application using Angular 2 with WebStorm. I wonder how could I bundle my web application using WebStorm. I saw my friend, he used Visual Code to bundle his Angular 2 project. After project has been minimized, the output…
Redplane
  • 2,971
  • 4
  • 30
  • 59
0
votes
2 answers

Angular2-cli not considered app folder files and some other files in dist folder.

I have used below steps to generate dist in production npm install -g angular2-cli ng new PROJECT_NAME cd PROJECT_NAME After this I have copied all the code it included app folder ng serve it will open my project and runs successfully. ng build…
raj m
  • 1,863
  • 6
  • 21
  • 37