refactor build: improve loading view engine with npm