ucap-angular/.storybook/main.js

42 lines
1022 B
JavaScript
Raw Permalink 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: {
2020-05-24 04:11:32 +00:00
resources: [
path.join(
__dirname,
'..',
'node_modules',
'@angular/material/prebuilt-themes',
'indigo-pink.css'
),
path.join(
__dirname,
'..',
'node_modules',
'perfect-scrollbar/css',
'perfect-scrollbar.css'
),
path.join(__dirname, 'styles.scss')
]
2020-05-17 02:24:49 +00:00
}
});
}
}
return config;
}
2020-04-20 05:09:09 +00:00
};