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

Enable use of sprockets directives by running the script content through preprocessors #7

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

Conversation

apauly
Copy link

@apauly apauly commented Sep 15, 2017

As stated in the README and the tests, it's already possible to use sprockets directives like require outside of the three tags (template, script, style).

This seems to only work with .vue files.
I wanted to require an external JS-plugin in order to add a Vue integration for it.
Therefore, it's now possible to add sprockets directives inside the script tag.

However, it's currently not possible to use both at the same time.

The existing tests still passed - I've added an additional test for the new functionality.

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

Successfully merging this pull request may close these issues.

1 participant