Skip to content

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

Open
apauly wants to merge 1 commit into
kikyous:masterfrom
apauly:feature/sprockets_preprocessors
Open

Enable use of sprockets directives by running the script content through preprocessors#7
apauly wants to merge 1 commit into
kikyous:masterfrom
apauly:feature/sprockets_preprocessors

Conversation

@apauly

@apauly apauly commented Sep 15, 2017

Copy link
Copy Markdown

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