ucap-angular/.storybook/main.js
Park Byung Eun 02c2645e01 0524 sync
2020-05-24 13:11:32 +09:00

42 lines
1022 B
JavaScript

const path = require('path');
module.exports = {
stories: ['../projects/**/*.stories.ts'],
addons: [
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-notes',
'@storybook/addon-knobs'
],
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,
'..',
'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')
]
}
});
}
}
return config;
}
};