Build imported css into separate file

This commit is contained in:
Roman Gotsiy 2015-10-26 21:34:32 +02:00
parent 53ea1008eb
commit 01328bce19
2 changed files with 6 additions and 0 deletions

View File

@ -39,7 +39,12 @@ gulp.task('concatDeps', ['bundleSfx'], function() {
});
gulp.task('bundleSfx', ['inlineTemplates'], function(cb) {
fs.existsSync('dist') || fs.mkdirSync('dist');
var builder = new Builder('./', 'system.config.js');
builder.config({
separateCSS: true
});
builder
.buildStatic(path.join(paths.tmp, paths.sourceEntryPoint),
paths.redocBuilt,

View File

@ -3,6 +3,7 @@
<head>
<title>ReDoc prototype</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="dist/redoc.full.css">
</head>
<body>
<side-menu>