Jalpc icon indicating copy to clipboard operation
Jalpc copied to clipboard

Local mode

Open felansu opened this issue 7 years ago • 2 comments

Hi @jarrekk ,

I read in your Readme file:

jekyll server --watch mode need to use original CSS/JS files

How can i run in local mode loading the original CSS/JS files ?

Thanks

felansu avatar Jul 21 '17 01:07 felansu

Hi @felansu

Thanks for you question.

I added this enhancement feature to TODO list and haven't a perfect solution yet, I had written a javascript script build/dev-server.js, when I run npm run dev, this script should have these functions:

  1. Install npm package due to package.json
  2. Change css/js file to original files at files index_head.html etc.
  3. run jekyll server --watch

The 2nd feature can do in another way: create a file like index_head_original.html in advance which load original css/js files. when we run npm run dev, this file will be included to html page, when we run npm build, we will compress css/js files and html files(index_head.html etc.) will be included for gh-pages code.

I haven't done it, if you and anyone have a better solution that would be wonderful, because it's more like a nodejs project :(

jarrekk avatar Jul 21 '17 02:07 jarrekk

@felansu I forgot there is a problem that when I run jekyll server --watch, I can't include node_modules directory to _site, so I can't use original css/js files, it's a little tough :(

jarrekk avatar Jul 29 '17 02:07 jarrekk