scss-library/fractal.config.js
2021-03-10 22:50:05 +01:00

37 lines
753 B
JavaScript

'use strict';
/*
* Require the path module
*/
const path = require('path');
const fs = require('fs');
/*
* Require the Fractal module
*/
const fractal = module.exports = require('@frctl/fractal').create();
/*
* Give your project a title.
*/
fractal.set('project.title', 'rCSS');
/*
* Tell Fractal where to look for components.
*/
fractal.components.set('path', path.join(__dirname, 'components'));
/*
* Tell Fractal where to look for documentation pages.
*/
fractal.docs.set('path', path.join(__dirname, 'docs'));
/*
* Tell the Fractal web preview plugin where to look for static assets.
*/
fractal.web.set('static.path', path.join(__dirname, 'public'));
/**
* Default preview
*/
fractal.components.set('default.preview', '@preview');