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

Plugin does not automatically handle extra_css and extra_javascript #33

Open
Archmonger opened this issue Sep 8, 2023 · 0 comments
Open

Comments

@Archmonger
Copy link

The readme says:

When using minify_js or minify_css, you don't have to modify the extra_javascript or extra_css entries in your mkdocs.yml file. The plugins automatically takes care of that.

However, this automatic handling does not appear to work anymore.

Traceback (most recent call last):
  File "C:\Users\Username\Repositories\reactpy-django\.venv\lib\site-packages\mkdocs\livereload\__init__.py", line 190, in _build_loop
    func()
  File "C:\Users\Username\Repositories\reactpy-django\.venv\lib\site-packages\mkdocs\commands\serve.py", line 67, in builder
    build(config, live_server=None if is_clean else server, dirty=is_dirty)
  File "C:\Users\Username\Repositories\reactpy-django\.venv\lib\site-packages\mkdocs\commands\build.py", line 354, in build
    config.plugins.on_post_build(config=config)
  File "C:\Users\Username\Repositories\reactpy-django\.venv\lib\site-packages\mkdocs\plugins.py", line 542, in on_post_build
    return self.run_event('post_build', config=config)
  File "C:\Users\Username\Repositories\reactpy-django\.venv\lib\site-packages\mkdocs\plugins.py", line 509, in run_event
    result = method(**kwargs)
  File "C:\Users\Username\Repositories\reactpy-django\.venv\lib\site-packages\mkdocs_minify_plugin\plugin.py", line 219, in on_post_build
    self._minify("js", config)
  File "C:\Users\Username\Repositories\reactpy-django\.venv\lib\site-packages\mkdocs_minify_plugin\plugin.py", line 90, in _minify
    file.write(self.path_to_data[file_path])
KeyError: 'assets/js/main.js'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant