blur-admin icon indicating copy to clipboard operation
blur-admin copied to clipboard

Regarding Gulp Build

Open brijq opened this issue 7 years ago • 5 comments

I would like to enquire if this gulp app is able to static host? My understanding is about when we run the gulp serve there is a .tmp hidden file being temporary created and serve from there as it can be found in devRelease file.

Therefore when we do a gulp build and expect it to work on the static host, it does not make sense which is possible without browser sync and ..etc, how can it be done?

Please advise

brijq avatar Oct 24 '17 02:10 brijq

After your clean, then build.. take the contents of the /release folder and put them on the server of your choice, NGINX, Apache, etc . Injection of browser-sync is only done on gulp serve or "like" tasks.

iba-jsykes avatar Nov 27 '17 16:11 iba-jsykes

Ok noted that which in short it must be dynamically hosted right?

brijq avatar Dec 12 '17 16:12 brijq

No, very much static. Your build produces all the css, js, and html files, ( and other assets ) for it to run independently of any kind of build process. Use the release folder, after the build gulp task. You put that folder on any static host and your app will load.

iba-jsykes avatar Dec 12 '17 18:12 iba-jsykes

I understand where you are coming from however the issue is the the release folder is kind of different from the actual folder where you run it dynamically. In a way. The release folder after building seems not completed. For example like some js files.

I understand the entire process of building actually the key idea here is that it transform js, css into min files however it feels incomplete.

All css html front end files are properly build however it is the js files that are incomplete.

brijq avatar Dec 18 '17 15:12 brijq

Any solution for this?

elyohan14 avatar Mar 01 '19 01:03 elyohan14