Lightweight development only node server that serves a web app, opens it in the browser, refreshes when html or javascript change, injects CSS changes using sockets, and has a fallback page when a route is not found.
Questions tagged [lite-server]
125 questions
0
votes
1 answer
lite-server not providing .js file inside /js folder - browser doesnt request /js file
I'm running a lite-server with npm run lite
My jQuery file is being loaded normally, and my css inside the css folder too, but the browser do not even make the GET request for the main.js file.
the main.js file is inside the /js folder as style.css…

andrepaulo
- 816
- 11
- 24
0
votes
1 answer
npm start is throwing unknown error related to lite server
I was working on Angular2 3-4 weeks ago and kept the project as is, on cloud. The problem is now the project won't run, throws this error at start.
I think the issue is with lite-server, but I did update node modules and npm. Is this the issue with…

Prajwal
- 3,930
- 5
- 24
- 50
0
votes
1 answer
babelJs Angular & lite-server, how compile ES6 ?
For my project Angular I use lite-server .
I want to use Es6 JS for my project with Babel.
How I can compilme my sources with lite-server ?

darkiron
- 1,174
- 1
- 10
- 20
0
votes
1 answer
How to prevent Unhandled 'error' event when starting lite-server?
I install lite-server using:
npm install lite-server
But it generates the message bellow:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:…

Radonirina Maminiaina
- 6,958
- 4
- 33
- 60
0
votes
1 answer
Angular2 with lite-server does not attach custom headers or cookies
I have a REST backend running on localhost:8080 that issues a cookie when the user logs in. I have a Angular2 front end packaged in with the backend. When I run the project, angular sends the cookie and attaches the custom header to the requests…

blur0224
- 972
- 8
- 26
0
votes
2 answers
Angular 2 — Error occured when executing command: lite-server
I have this machine that I install Zsh and OhMyZsh and then I uninstalled them.
Now when I run "npm start" on the Angular 2 Quick Starter template it give me back this error:
Error occured when executing command: lite-server
Error: spawn…

Hossam Mourad
- 4,369
- 4
- 26
- 22
0
votes
1 answer
Angular 2 instant CSS reload
I'm looking very hard to find a solution to this. I'm trying to serve my application so it reloads only changed css files without recompilling the whole app, because now it's very frustrating when you change one thing in CSS and have to wait for the…

forTheCause
- 9
- 4
0
votes
1 answer
How to change default file watch options in LiteServer
So I'm trying to use LiteServer in my project, but I can't get it to change the default watch of index.html, my current file is index1.html. I specified app2.js as the entry point during npm init, so I was able to change the JS default, but not for…

Manish Giri
- 3,562
- 8
- 45
- 81
0
votes
1 answer
lite-serverbs-config.js: middleware and array of folders
I had this bs-config.js:
module.exports = {
server: {
middleware: {
1: apiProxy
}
}
};
And this separate one:
module.exports = {
server: [".", "dist"]
};
How can I join both configurations?

Adriano dos Santos Fernandes
- 735
- 5
- 19
0
votes
1 answer
Changing lite server to use dist directory
I have set up an Angular 2 project using the starter sample. Code is placed under the apps directory, ts compiles to js in the same structure and lite-server serves files correctly. All works correctly.
I'd like to move the ts output to a dist…

GregHouse
- 295
- 1
- 2
- 15
0
votes
1 answer
Browser-sync&lite-server: http-proxy-middleware intercepts non-existing urls
I have the following routing in the angular2 app:
/** Application routes */
const routes: Routes = [
{ path: '', component: LandingComponent },
{ path: 'about', component: AboutUsComponent },
// catch all path, should go after all…

Vadim Kirilchuk
- 3,532
- 4
- 32
- 49
0
votes
0 answers
Angular2 - interrupt lite server workflow to download additional npm packages?
I have Angular2 app running with 5 minute setup project. Once the lite-server starts running (after npm start) the console's cursor is not responsive to commands anymore. Is there a way to interrupt the lite server to download additional packages…

Turo
- 1,537
- 2
- 21
- 42
0
votes
0 answers
How to see compiler errors when using Angular 2 with lite-server
I'm working in Angular 2 and if I have a compiler error when I do an npm start I see it right away. The problem I'm running into is when I am doing live code edits and I introduce a an error. I'm not seeing any compiler errors in the lite-server…

Shane Courtrille
- 13,960
- 22
- 76
- 113
0
votes
1 answer
process is not defined in lite-server with redux
When using the default SystemJS config from Angular 2 RC.5, the lite-server throw an error of process is not defined if add redux as dependency. Has anyone experienced this? Here is the trace stack:
(index):43 Error: ReferenceError: process is not…

Downhillski
- 2,555
- 2
- 27
- 39
0
votes
2 answers
Make GhostMode false in Angular2 - the tour of heroes example
I was referring ng2 documents for one of my POCs. In the quick start it ask us to download code and project structure from git location. And it uses lite-server as server to run the application. Can anyone help me where I can find lite config file…

phalgun kumar
- 11
- 2