Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with watch mode #194

Open
kuzyas opened this issue Nov 29, 2016 · 8 comments
Open

Build with watch mode #194

kuzyas opened this issue Nov 29, 2016 · 8 comments

Comments

@kuzyas
Copy link

kuzyas commented Nov 29, 2016

Is there a way to build project for development with watch parameter?
Something like this: npm run build:dev --watch

@fesor
Copy link
Collaborator

fesor commented Nov 29, 2016

Run npm start to starts browserify + webpack dev server, which provides you incremental builds of your application.

@fesor fesor closed this as completed Nov 29, 2016
@kuzyas
Copy link
Author

kuzyas commented Nov 29, 2016

How can i specify output folder?
For example in angular2-webpack-starter I can do this by running npm run watch
@fesor

@fesor
Copy link
Collaborator

fesor commented Nov 29, 2016

NG6-starter doesn't provide you any dev builds. It only have webpack-dev-server which stores all build results in memory.

If you want, you can add custom script which starts webpack using different config (other than webpack.dist.config.js).

@fesor
Copy link
Collaborator

fesor commented Nov 29, 2016

@kuzyas Could you provide more info about your usecase? Why do you need dev builds (why not just use webpack-dev-server)

@fesor fesor reopened this Nov 29, 2016
@kuzyas
Copy link
Author

kuzyas commented Nov 30, 2016

I have api on Sharepoint server, when I am making http request from http://localhost:3000 to http://spserver:80/api it returns 401 Unauthorized error.

@fesor
Copy link
Collaborator

fesor commented Nov 30, 2016

@kuzyas so you have problems with CORS on sharepoint server?

What you could do, is to use browsersync proxy to eliminate preflight requests on sharepoint server. Could this help?

@kuzyas
Copy link
Author

kuzyas commented Nov 30, 2016

Thanks, I have solved CORS problem earlier with proxy.
The real problem was with sharepoint authentication, which I've solved by changing server settings.

@fesor
Copy link
Collaborator

fesor commented Nov 30, 2016

I leave this issue opened since there are real use cases when you can't change server settings. Will try to update webpack configs and run scripts asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants