import { IPlayground } from '../../../interfaces/IPlayground' ; import { PlaygroundStrategy } from './playground-strategy' ; export class CssPlaygroundStrategy extends PlaygroundStrategy { getGlobalExternalScripts ( _assetsUrl ) { return [ ] ; } getBodyExternalScripts ( ) { return [ ] ; } getGlobalExternalStyles ( assetsUrl ) { return [ ... super . getGlobalExternalStyles ( assetsUrl ) , 'app.css' ] ; } getGlobalStyles ( ) { return [ `body { padding: 15px; background-color: #fff; }` ] ; } getBody ( playground ) { return [ playground . files [ 'app.html' ] ] . join ( '\n' ) ; } /** Get the files to include in the playground */ getFiles ( playground ) { return { 'app.css' : playground . files [ 'app.css' ] || '' , } ; } }