Can't Change The Base Folder For Lite-server In Angular 2 Application
Answer : You should use a file called bs-config.js (instead of a bs-config.json one) since lite-server tries to load a module using the require function. The configuration should be a valid Node module: module.exports = { "port": 8123, "server": { "baseDir": "./src" } }; See this line in the source code: https://github.com/johnpapa/lite-server/blob/master/lib/lite-server.js#L20. This file by default is loaded from the user's project folder. Edit After digging a bit more, the first part of my answer relies on the code from github but not the one actually installed using npm install (version 1.3.4) There are two options in this case: port baseDir Using this command will fix your problem: $ lite-server --baseDir ./src --port 3333 Hope it helps you, Thierry The answer from Thierry Templier is not quite correct (anymore), you can use either the bs-config.json or bs-config.js configuration to adjust your browse...