-
Notifications
You must be signed in to change notification settings - Fork 9
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
Modifying props during development doesn't update page #24
Comments
yes, makes sense, i'm reading from a file and not watching it also.. feature request: watch |
Can be done with two changes :
The
This avoids issues where someone removes properties from the source but that not being reflected in the plugin state. module.exports = (UserProps) => {
const STATE = {}
return {
postcssPlugin: 'postcss-jit-props',
async Once (node, {Rule, AtRule}) {
... -> module.exports = (UserProps) => {
return {
postcssPlugin: 'postcss-jit-props',
prepare() {
const STATE = {}
return {
async Once (node, {Rule, AtRule}) {
... I've noticed that switching to Some build tools run a single plugin instance in parallel against multiple source files. Using |
fixed in |
Given the setup below, if I was to add/remove/change any css variables within
props.css
, those changes will not update during development. Unsure if this is a stipulation of this plugin.Tested with Astro 1.6 and PostCSS 8.4.18
The text was updated successfully, but these errors were encountered: