123456789 |
- 'use strict';
- var nodeLogger = require('@storybook/node-logger');
- var p=t=>t.test instanceof RegExp&&(t.test.test("test.css")||t.test.test("test.scss")||t.test.test("test.less"));function l(t,{rules:o,plugins:e}={}){if(nodeLogger.logger.info(`=> [${nodeLogger.colors.pink.bold("@storybook/addon-styling")}] Applying custom Storybook webpack configuration styling.`),e&&e.length&&(nodeLogger.logger.info(`=> [${nodeLogger.colors.pink.bold("@storybook/addon-styling")}] Adding given plugins to Storybook webpack configuration.`),t.plugins=t.plugins||[],t.plugins.push(...e)),o&&o.length){if(nodeLogger.logger.info(`=> [${nodeLogger.colors.pink.bold("@storybook/addon-styling")}] Replacing Storybook's webpack rules for styles with given rules.`),!t.module?.rules)throw new Error("webpackFinal received a rules option but config.module.rules is not an array");t.module.rules=t.module.rules.filter(i=>typeof i=="object"&&!p(i)),t.module.rules?.push(...o);}return t}var b=l;
- exports.webpackFinal = b;
- //# sourceMappingURL=out.js.map
- //# sourceMappingURL=preset.js.map
|