@storybook/angular
Version:
Storybook for Angular: Develop Angular components in isolation with hot reloading.
14 lines (13 loc) • 373 B
JavaScript
const isStylingRule = (rule) => {
const { test } = rule;
if (!test) {
return false;
}
if (!(test instanceof RegExp)) {
return false;
}
return test.test('.css') || test.test('.scss') || test.test('.sass');
};
export const filterOutStylingRules = (config) => {
return config.module.rules.filter((rule) => !isStylingRule(rule));
};