42 lines
1022 B
JavaScript
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;
|
|
}
|
|
};
|