ucap-angular/.storybook/main.js

26 lines
580 B
JavaScript
Raw Normal View History

2020-05-17 02:24:49 +00:00
const path = require('path');
2020-04-20 05:09:09 +00:00
module.exports = {
stories: ['../projects/**/*.stories.ts'],
addons: [
'@storybook/addon-actions',
'@storybook/addon-links',
2020-04-23 00:03:21 +00:00
'@storybook/addon-notes',
'@storybook/addon-knobs'
2020-05-17 02:24:49 +00:00
],
webpackFinal: async (config) => {
for (const rule of config.module.rules) {
if (-1 < String(rule.test).indexOf('scss')) {
rule.use.push({
loader: 'sass-resources-loader',
options: {
resources: [path.join(__dirname, 'styles.scss')]
}
});
}
}
return config;
}
2020-04-20 05:09:09 +00:00
};