mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
39 lines
784 B
JavaScript
39 lines
784 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
|
||
|
addons: [
|
||
|
'@storybook/addon-links',
|
||
|
'@storybook/addon-essentials',
|
||
|
'storybook-addon-designs',
|
||
|
'storybook-addon-themes',
|
||
|
],
|
||
|
webpackFinal: async (config, { configType }) => {
|
||
|
config.module.rules.push({
|
||
|
test: /\.scss$/,
|
||
|
oneOf: [
|
||
|
{
|
||
|
resourceQuery: /module/,
|
||
|
use: [
|
||
|
'vue-style-loader',
|
||
|
{
|
||
|
loader: 'css-loader',
|
||
|
options: {
|
||
|
modules: true,
|
||
|
},
|
||
|
},
|
||
|
'sass-loader',
|
||
|
],
|
||
|
include: path.resolve(__dirname, '../'),
|
||
|
},
|
||
|
{
|
||
|
use: ['vue-style-loader', 'css-loader', 'sass-loader'],
|
||
|
include: path.resolve(__dirname, '../'),
|
||
|
},
|
||
|
],
|
||
|
});
|
||
|
|
||
|
return config;
|
||
|
},
|
||
|
};
|