mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
32 lines
780 B
JavaScript
32 lines
780 B
JavaScript
|
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
||
|
|
||
|
module.exports = {
|
||
|
stories: ['../app/**/*.stories.mdx', '../app/**/*.stories.@(ts|tsx)'],
|
||
|
addons: [
|
||
|
'@storybook/addon-links',
|
||
|
'@storybook/addon-essentials',
|
||
|
{
|
||
|
name: '@storybook/addon-postcss',
|
||
|
options: {
|
||
|
cssLoaderOptions: {
|
||
|
importLoaders: 1,
|
||
|
modules: {
|
||
|
localIdentName: '[path][name]__[local]',
|
||
|
auto: true,
|
||
|
exportLocalsConvention: 'camelCaseOnly',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
webpackFinal: (config) => {
|
||
|
config.resolve.plugins = [
|
||
|
...(config.resolve.plugins || []),
|
||
|
new TsconfigPathsPlugin({
|
||
|
extensions: config.resolve.extensions,
|
||
|
}),
|
||
|
];
|
||
|
return config;
|
||
|
},
|
||
|
};
|