upash / peco

nothing here, move on..
MIT License
209 stars 12 forks source link

Theme Level Static Folder #29

Closed satouriko closed 5 years ago

satouriko commented 6 years ago

How could a theme have some static assets that will be copied on build?

Like this, https://github.com/egojump/peco/tree/master/examples/blog/static

egoist commented 6 years ago

Do you really need that in a theme? You can directly import the static files like images in JS or CSS files.

satouriko commented 6 years ago

I'm now porting a hexo theme to peco, the theme allows you to choose whether to use a cdn or using local js/css by options in config, what should I do or what's a recommended way if I want to keep this feature?

besides, some js are highly dependent upon jquery OAO

satouriko commented 6 years ago

And here's another problem, how to deal with the jquery issue. I'm aware that we can use chainWebpack in peco.config.js to provide a webpack jquery plugin, but this shouldn't be exposed to the user, say that I have to write documentation and force everyone who use this theme fill in the chainWebpack stuff into their config file. There should be a theme-level webpack config too.

egoist commented 6 years ago

@rikakomoe that's actually possible currently, I just haven't got time to document that. I plan to release a stable version in october though 😅 sorry for the inconvenience.

soyaine commented 5 years ago

@egoist Have the stable version been released?

egoist commented 5 years ago

@soyaine sorry I have severval projects to maintain, so it's delayed 😔But I've made some progress, I will release it by the end of this year for sure.

soyaine commented 5 years ago

@egoist Look forward to the next release.

I'm trying to publish the build files by gh-pages, but it ignores the _xxx directory because of the default site generator is Jekyll. Is there any other way to modify where the build files located?

https://stackoverflow.com/questions/38363590/gh-pages-subdirectory-files-arent-shown-up

egoist commented 5 years ago

@soyaine I think you already got the best answer from the stackoverflow link.

soyaine commented 5 years ago

@egoist Actually, the way it mentioned not works.

soyaine commented 5 years ago

@egoist Sorry. I've tried again. Solved.

egoist commented 5 years ago

Just FYI, Peco is renamed to Saber, further updates will happen there

egoist commented 5 years ago

https://github.com/egoist/saber/issues/19