{"size": 556, "ext": "js", "max_stars_repo_path": "svelte.config.js", "max_stars_repo_name": "nuwan89/slimkit-ui", "max_stars_repo_stars_event_min_datetime": "2020-12-09T18:44:39.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-09T18:44:39.000Z", "max_issues_repo_path": "svelte.config.js", "max_issues_repo_name": "nuwan89/slimkit-ui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "svelte.config.js", "max_forks_repo_name": "nuwan89/slimkit-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.1739130435, "max_line_length": 51, "alphanum_fraction": 0.4316546763}
const sass = require('node-sass');

module.exports = {
    preprocess: {
        style: async ({ content, attributes }) => {
            if (attributes.type !== 'text/scss') {
                return;
            }

            const result = await sass.renderSync({
                data: content,
                sourceMap: 'style.css.map',
                omitSourceMapUrl: true,
            });

            return {
                code: result.css.toString('utf8'),
                map: result.map.toString('utf8'),
            };
        },
    },
};
