Skip to content

kurto8/parcel-browsersync-proxy-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parcel-bundler + express + browsersync proxy example

parcel-bundler browsersync server proxy example

parcel-bundler's dev server does not provide a server proxy for the rest api.

so, I bundled through parcel-bundler using js files and use browser-sync and proxy middleware to communicate with the REST api server.

Prerequisites

fork github repo.

git clone https://github.com/trustyoo86/parcel-browsersync-proxy-example.git

Run npm install or yarn install in the project folder

# npm
npm install
# yarn
yarn install

usage

development mode

Run the express server at the terminal

# npm
npm run server
# yarn
yarn server

Run the dev mode of parcel-bundler another termnial

# npm
npm run dev
# yarn
yarn dev

production mode

Run the express server at the terminal with NODE_ENV=production

# npm
npm run prod
# yarn
yarn prod

About

parcel-bundler + express + browsersync proxy example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.3%
  • HTML 16.5%
  • SCSS 2.2%