mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-06 21:10:33 +03:00
Build imported css into separate file
This commit is contained in:
parent
53ea1008eb
commit
01328bce19
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user