Skip to content

Cannot use variables for attributes in include or require macros #28

Description

@jamesehly

It would be cool if we could use variables with the require and include macros, but it looks like they can only accept string, number, boolean and objects at the moment. For instance, doing this:

@include(htmlWebpackPlugin.options.filename)

results in...

ERROR in   Error: Child compilation failed:
  Module not found: Error: Can't resolve './NaN' in 'C:\static\outkit-docs\src\templates\docs':
  Error: Can't resolve './NaN' in 'C:\static\outkit-docs\src\templates\docs'

Does anyone know of a workaround for this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions