Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local mode #64

Open
felansu opened this issue Jul 21, 2017 · 2 comments
Open

Local mode #64

felansu opened this issue Jul 21, 2017 · 2 comments

Comments

@felansu
Copy link
Contributor

felansu commented Jul 21, 2017

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

@jarrekk
Copy link
Owner

jarrekk commented Jul 21, 2017

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
Copy link
Owner

jarrekk commented Jul 29, 2017

@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 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants