Closed pixelastic closed 3 years ago
I've been needing that for both the search and docs theme. It's time I add it to the core
This is added through a custom webpack resolve alias. This still requires a norska update and a manual update of the src/script.js
of:
The default script.js file should have the following code:
This should be enough placeholder for every theme to initialize correctly. The
{theme}
part might need to be replaced with the current theme the same way do with CSS (this might be slighly harder as webpack expect a path, not a string, but we'll see).If not possible, the theme documentation should include information about how to load the theme.