mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
1e6a75f341
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
60 lines
1.2 KiB
JavaScript
60 lines
1.2 KiB
JavaScript
const path = require('path');
|
|
|
|
/**
|
|
* @type {import('@storybook/types').StorybookConfig}
|
|
*/
|
|
module.exports = {
|
|
framework: {
|
|
name: '@storybook/vue-webpack5',
|
|
options: {},
|
|
},
|
|
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.{ts,js}'],
|
|
addons: [
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-essentials',
|
|
{
|
|
name: '@storybook/addon-postcss',
|
|
options: {
|
|
postcssLoaderOptions: {
|
|
implementation: require('postcss'),
|
|
},
|
|
},
|
|
},
|
|
'storybook-addon-themes',
|
|
],
|
|
webpackFinal: async (config) => {
|
|
config.module.rules.push({
|
|
test: /\.scss$/,
|
|
oneOf: [
|
|
{
|
|
resourceQuery: /module/,
|
|
use: [
|
|
'vue-style-loader',
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
modules: {
|
|
localIdentName: '[path][name]__[local]--[hash:base64:5]',
|
|
},
|
|
},
|
|
},
|
|
'sass-loader',
|
|
],
|
|
include: path.resolve(__dirname, '../'),
|
|
},
|
|
{
|
|
use: ['vue-style-loader', 'css-loader', 'sass-loader'],
|
|
include: path.resolve(__dirname, '../'),
|
|
},
|
|
],
|
|
});
|
|
|
|
config.resolve.alias = {
|
|
...config.resolve.alias,
|
|
'@/': path.resolve(__dirname, '../src/'),
|
|
};
|
|
|
|
return config;
|
|
},
|
|
};
|