Skip to content

Commit

Permalink
Merge pull request #248 from solita/update-webpack
Browse files Browse the repository at this point in the history
Update webpack
  • Loading branch information
Juholei authored Mar 22, 2024
2 parents 56ac078 + c88fae0 commit f871c42
Show file tree
Hide file tree
Showing 6 changed files with 14,983 additions and 17,023 deletions.
16 changes: 11 additions & 5 deletions etp-front/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
module.exports = {
stories: ['../src/**/*.stories.js'],

addons: [
'@storybook/addon-actions/register',
'@storybook/addon-links/register',
'@storybook/addon-a11y/register',
'@storybook/addon-viewport/register'
]
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-a11y',
'@storybook/addon-viewport'
],

framework: {
name: '@storybook/svelte-webpack5',
options: {}
},
}
5 changes: 2 additions & 3 deletions etp-front/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { addParameters, addDecorator } from '@storybook/svelte';
import { withA11y } from '@storybook/addon-a11y';
import { setupI18n } from '@Language/i18n';

addDecorator(withA11y);
addParameters({ viewport: { defaultViewport: 'responsive' } });
export const parameters = { viewport: { defaultViewport: 'responsive' } };

const localizationDecorator = makeDecorator({
wrapper: (storyFn, context) => {
Expand All @@ -14,4 +13,4 @@ const localizationDecorator = makeDecorator({
}
});

addDecorator(localizationDecorator);
export const decorators = [localizationDecorator];
2 changes: 1 addition & 1 deletion etp-front/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = async ({ config, mode }) => {

config.module.rules.push({
test: /\.css$/,
loaders: [
use: [
{
loader: 'postcss-loader',
options: {
Expand Down
Loading

0 comments on commit f871c42

Please sign in to comment.