Jalpc
Jalpc copied to clipboard
Local mode
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
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:
- Install npm package due to package.json
- Change css/js file to original files at files index_head.html etc.
- 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 :(
@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 :(