Skip to content
This repository has been 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