Skip to content

Commit

Permalink
updated the requirements paths and the composer json to export the cl…
Browse files Browse the repository at this point in the history
…ient distilled folder
  • Loading branch information
fonsekaean committed Oct 24, 2017
1 parent 8296777 commit 16b27d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
"require": {
"silverstripe/framework": "^4",
"cebe/markdown": "1.1.2"
},

"extra": {
"expose": [
"client/dist"
]
}

}
11 changes: 9 additions & 2 deletions src/extensions/MarkdownFieldExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,15 @@ class MarkdownFieldExtension extends Extension
public function init()
{
$module = ModuleLoader::getModule('silverstripers/silverstripe-markdown');
Requirements::javascript($module->getRelativeResourcePath("client/dist/bundle.min.js"));
Requirements::css($module->getRelativeResourcePath("client/dist/bundle.min.css"));
//Requirements::javascript($module->getRelativeResourcePath("client/dist/bundle.min.js"));
//Requirements::css($module->getRelativeResourcePath("client/dist/bundle.min.css"));


Requirements::javascript('silverstripers/silverstripe-markdown:client/dist/bundle.min.js');
Requirements::css('silverstripers/silverstripe-markdown:client/dist/bundle.min.css');



}

}

0 comments on commit 16b27d4

Please sign in to comment.