Skip to content

UPDATE: Templates usage in exportsOverride#171

Open
tony13tv wants to merge 1 commit into
yatskevich:develfrom
tony13tv:patch-1
Open

UPDATE: Templates usage in exportsOverride#171
tony13tv wants to merge 1 commit into
yatskevich:develfrom
tony13tv:patch-1

Conversation

@tony13tv

Copy link
Copy Markdown

This will allow the use of the template <%= component %> in bower.json to make globbing like in grunt tasks.

This will allow the use of the template `<%= component %>` in bower.json to make globbing like in grunt tasks.
@codewithtyler

Copy link
Copy Markdown
Collaborator

@tony13tv Can you provide an example of how this can be used so we can test your PR?

@tony13tv

tony13tv commented Jun 29, 2016

Copy link
Copy Markdown
Author

Well in the bower.json file you can use it as an alias for files that contains the name of the module in it.
e.g:

"*": {
  "js": "<%= component %>.min.js",
  "css": "<%= component %>.min.css"
}

This will include the file jquery.min.js and jquery.min.css from the jquery package. The file bootstrap.min.js and bootstrap.min.css from the bootstrap package.

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.

2 participants