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

View File

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