You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature request: local project files in siteConfig.scripts & siteConfig.stylesheets #534
We want to include our library distributable in the pages of our documentation site to demonstrate it. There's also a 3rd-party (vendor) script in the node_modules dir that we need to include (to make the indicated code blocks "executable").
Is there a nice way to include local project files in siteConfig.scripts that are outside the ./website/static/ dir?
Right now I'm copying the needed files into ./website/static/vendor at the beginning of every script (start, build, publish), and adding that dir to .gitignore, but it feels hacky.
I propose we treat relative paths in siteConfig.scripts & siteConfig.stylesheets as relative to the location of siteConfig.js and copy those files into the build.
Activity
yangshun commentedon May 4, 2018
I think this is a reasonable suggestion. PR welcome!
In future we might want to move to a bundler like webpack, rollup or parcel though.
Airse commentedon May 6, 2018
@yangshun I wouldn't mind working on this!
yangshun commentedon May 6, 2018
@Airse Awesome, it's yours!
bgub commentedon Mar 19, 2019
Has there been any progress on this?
endiliey commentedon Jul 18, 2019
Wontfix in v1 with v2 coming up