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 working
I had a project that was previously using lite-server. I can no longer get it to run using
npm run
I see the following from the console
PS C:\Users\XXX\Documents\Work\Repos\Homepage_Slider> npm run
Lifecycle scripts included in…

onTheInternet
- 6,421
- 10
- 41
- 74
0
votes
0 answers
Getting Error While starting lite-server
i did a fresh "npm init".
put entry point : "index.html"
then installed lite-server : npm install lite-server --save-dev
also updated the package.json
{
"name": "newjs",
"version": "1.0.0",
"description": "nothing",
"main":…

mudit Panwar
- 57
- 3
0
votes
1 answer
How to get webpack to reflect JavaScript changes along side lite-server
Through npm, is there anyway possible we can get webpack to reflect javascript changes on the fly, when lite-server is running? I have to do a npm run build every single time I have JavaScript changes.
Lite-server is doing an excellent job in…

klewis
- 7,459
- 15
- 58
- 102
0
votes
1 answer
npm starting error on lite-server
Well, i'm starting with Angular 2 right now, and in the first QuickStart example, i'm facing this issue with "npm start":
C:\nodejs\apps\angular2\01-cadastro-contatos>npm start
> angular-quickstart@1.0.0 start…

Eduardo Gonçalves
- 21
- 4
0
votes
1 answer
webpack and lite-server for react
I built my own webpack.config.js for react development, also I use lite-server. Is it possible to put both webpack and lite-server commands to package.json like that:
"scripts": {
"dev": "lite-server webpack"
}
or are there any other ways to do…

ivankoleda
- 340
- 1
- 11
0
votes
0 answers
How can I use Angular4 without npm lite-server?
I'm using Angular 4 for my project.
Here my scenario is to use Angular 4 without any server(even npm lite-server).
These are the steps which I followed to test the project without any server.
- Built the app using "ng build --prod", to get the…

Karthikeyan D Murthy
- 31
- 6
0
votes
0 answers
Unable to use with url encoding in html5 mode angularjs
I am using url encoding with angularjs to send data to a view it works perfectly fine but when I make html5 mode using
$locationProvider.html5Mode(true);
I get the following error
Cannot GET…

user93
- 1,866
- 5
- 26
- 45
0
votes
1 answer
Deploying Angular 2 application (without angular-cli)
I'm trying to deploy my application from my Linux server.
Everything works fine except for the fact that my lite-server command is not serving any files. Accessing my server at serverUrl:3000 throws a
'site takes too long to respond'
My scripts…

Ivar Reukers
- 7,560
- 9
- 56
- 99
0
votes
1 answer
AppComponent content not rendered when using lite-server/browsersync
I'm creating a simple Angular2 project using Angular CLI and the AppComponent content is correctly rendered when using the Development Server (ng serve). Then I installed lite-server to allow the detection of file changes and use browser sync.
The…

juliano.net
- 7,982
- 13
- 70
- 164
0
votes
0 answers
Is Angular 2 AOT compilation and tree shaking with rollup slow?
I'm going through the angular 2 deployment documentation on AOT and it recommends making copies of the JIT compilation files and maintaining the AOT and JIT files side by side.
Ideally I would be able to develop with the AOT / Rollup compilation…

Ole
- 41,793
- 59
- 191
- 359
0
votes
3 answers
"npm start" local server is not working
I am trying Hello World in Angular 2 when I run "npm start" its not working. I have define start in script of package.json but start is not working
this is my package.json settings
{
"name": "ng2-helloworld",
"version": "1.0.0",
"description":…

Naveed Aheer
- 1,715
- 6
- 25
- 40
0
votes
1 answer
How do I change the the default lite-server port in Angular quickstart?
I just downloaded Angular 4 quickstart app and attempted to change the default lite-server port by adding "port": 8000 to bs-config.json as following:
{
"server": {
"port": 8000,
"baseDir": "src",
"routes": {
"/node_modules":…

Stack
- 348
- 3
- 17
0
votes
0 answers
VSCode Windows stops npm
I have lite-server (2.3.0) running on a VSCode integrated terminal on my Mac and I have another integrated terminal for running gulp and publishing into my dist folder which is where lite-server is serving from.
Whenever I do that on my Mac it works…

Carlos Torrecillas
- 4,965
- 7
- 38
- 69
0
votes
0 answers
Path issue while Configuring babel-cli
I recently started working with ReactJS. So I was following a tutorial which shows how to configure babel-cli. So with it, I've installed all necessary packages including liter-server. I understood and implemented pretty much everything same but,…

Kishore Kumar Korada
- 1,204
- 6
- 22
- 47
0
votes
2 answers
Cannot have period in route or param
I really need to have a period in either a parameter or a route but lite-server seems to object to this.
I have found several places referencing the issue and saying that it can be fixed with a rewrite rule but there are no complete examples that I…

Guerrilla
- 13,375
- 31
- 109
- 210