mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-11 23:40:34 +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) {
|
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,
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user