-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfractal.config.js
More file actions
32 lines (27 loc) · 866 Bytes
/
fractal.config.js
File metadata and controls
32 lines (27 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const fractal = require('@frctl/fractal').create();
const path = require('path');
/*
* Give your project a title.
*/
fractal.set('project.title', 'Simple PostCSS framework');
/*
* Tell Fractal where to look for components.
*/
fractal.components.set('default.preview', '@preview');
fractal.components.set('path', path.join(__dirname, 'src'));
/*
* Tell Fractal where to look for documentation pages.
*/
fractal.docs.set('path', path.join(__dirname, 'documentation'));
fractal.web.set('builder.dest', path.join(__dirname, 'build'));
fractal.web.set('static.path', path.join(__dirname, 'dist'));
fractal.web.set('server.sync', true);
fractal.web.set('server.syncOptions', {
open: true,
files: [
path.join(__dirname, 'dist'),
path.join(__dirname, 'src/**/*[.hbs, .json]'),
],
});
fractal.web.set('server.watch', true);
module.exports = fractal;