Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Prevent empty css #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Prevent empty css #218

wants to merge 1 commit into from

Conversation

pedro-mm-pereira
Copy link

Problems addressed:

  • When there are no styles on a Vue single-file-component and there is an out path defined in the extract-css plugin, the file is created anyway.
  • When the directory provided by the out path doesn't exist, the css file isn't created and the write action silently fails.

This proposal tries to block the write action on empty styles (can be bypassed with the allowEmpty option) and creates the directory if it does not exist.

Problems addressed:
- When there are no styles on a Vue single-file-component and there is an out path defined in the extract-css plugin, the file is created anyway.
- When the directory provided by the out path doesn't exist, the css file isn't created and the write action silently fails.

This proposal tries to block the write action on empty styles (can be bypassed with the allowEmpty option) and creates the directory if it does not exist.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy