-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error thrown on parsing <style>
tags in index.html
#52
Comments
mshabarov
pushed a commit
to vaadin/flow
that referenced
this issue
Aug 9, 2022
Fixes #14142 Added rollup-plugin-postcss-lit and configured it to handle all CSS files except those under theme folder. Note the extra entry with ? is necessary until umbopepato/rollup-plugin-postcss-lit#49 fixed. Another entry added to excludes to workaround umbopepato/rollup-plugin-postcss-lit#52
umbopepato
added a commit
that referenced
this issue
Jun 21, 2023
Hey @web-padawan! Version v2.1.0 is out with a new default exclude filter for this kind of inline scripts (which is called |
Thank you for letting me know! I will inform my colleagues and maybe they will upgrade to new version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When
index.html
page contains<style>
tags, it is passed to the plugin and the following error occurs:Code example
index.html
vite.config.js
Workaround
Updating the
exclude
helps to ignore these CSS files:The plugin should be probably updated to ignore such CSS files, as they are not supposed to be imported from JS.
The text was updated successfully, but these errors were encountered: