Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(demos): codepen demos load svg assets #6727

Closed
wants to merge 1 commit into from

Conversation

ThomasBurleson
Copy link
Contributor

The CodePen demo launches now correctly load the external, svg-assets (and post-load $templateCache) used in some of the md-icon demos.

  • now defines external module 'material.svgAssetsCache'
  • now defines extra svgs for 'ic_euro_24px.svg', and 'ic_card_giftcard_24px.svg'

The CodePen demo launches now correctly load the external, svg-assets (and post-load $templateCache) used in some of the md-icon demos.

*  now defines external module  'material.svgAssetsCache'
*  now defines extra svgs for 'ic_euro_24px.svg', and 'ic_card_giftcard_24px.svg'
@ThomasBurleson
Copy link
Contributor Author

@topherfangio - can you review ?

@ThomasBurleson ThomasBurleson added this to the 1.0.3 milestone Jan 17, 2016
@ThomasBurleson ThomasBurleson self-assigned this Jan 17, 2016
function replaceDemoModuleWithCodepenModule(file) {
var matchAngularModule = /\.module\(('[^']*'|"[^"]*")\s*,(\s*\[([^\]]*)\]\s*\))/ig;
var modules = "['ngMaterial', 'ngMessages', 'material.svgAssetsCache']";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a very good way to fix the asset-cache.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx. It was a brain-teaser at first.

@devversion
Copy link
Member

@ThomasBurleson - What do you think about a Gulp Task for Generating the Asset Cache (certainly after your PR)? See here for example

@topherfangio
Copy link
Contributor

@ThomasBurleson LGTM

@ThomasBurleson
Copy link
Contributor Author

@devversion - Submit a PR for the Gulp Task to build the asset-cache. Notice that it is now svg-assets-cache.js.

@ThomasBurleson ThomasBurleson deleted the wip/codepen_assets_fix branch January 19, 2016 04:50
devversion added a commit to devversion/material that referenced this pull request Jan 19, 2016
- Added Gulp Task for Asset Cache
- Updated `CODPEN.MD` (also for angular#6727)
- Removed old Asset Cache Build Script
- Updated Asset Cache from the Gulp Task
devversion added a commit to devversion/material that referenced this pull request Jan 19, 2016
- Added Gulp Task for Asset Cache
- Updated `CODPEN.MD` (also for angular#6727)
- Removed old Asset Cache Build Script
- Updated Asset Cache from the Gulp Task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants