Closed satouriko closed 5 years ago
Do you really need that in a theme? You can directly import the static files like images in JS or CSS files.
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
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.
@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.
@egoist Have the stable version been released?
@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.
@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
@soyaine I think you already got the best answer from the stackoverflow link.
@egoist Actually, the way it mentioned not works.
@egoist Sorry. I've tried again. Solved.
Just FYI, Peco is renamed to Saber, further updates will happen there
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