Skip to content

Commit afec9d9

Browse files
committed
chore: storybook builds
1 parent ddb353e commit afec9d9

16 files changed

+248
-7
lines changed

.storybook/main.js

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ const path = require('path');
33
module.exports = {
44
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
55
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
6+
core: {
7+
builder: 'webpack5',
8+
},
69
webpackFinal: async (config, { configType }) => {
710
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
811
// You can change the configuration based on that.
@@ -14,6 +17,11 @@ module.exports = {
1417
use: ['style-loader', 'css-loader', 'sass-loader'],
1518
include: path.resolve(__dirname, '../'),
1619
});
20+
config.performance = {
21+
...config.performance,
22+
maxEntrypointSize: 4194000,
23+
maxAssetSize: 2097000,
24+
};
1725

1826
// Return the altered config
1927
return config;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
module.exports = {
22
presets: ['@vue/cli-plugin-babel/preset'],
3+
plugins: [
4+
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
5+
['@babel/plugin-proposal-class-properties', { loose: true }],
6+
['@babel/plugin-proposal-private-methods', { loose: true }],
7+
],
38
};

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"@storybook/addon-actions": "^6.4.22",
4747
"@storybook/addon-essentials": "^6.4.22",
4848
"@storybook/addon-links": "^6.4.22",
49+
"@storybook/builder-webpack5": "^6.4.22",
50+
"@storybook/manager-webpack5": "^6.4.22",
4951
"@storybook/vue3": "^6.4.22",
5052
"@vue/cli-plugin-babel": "^5.0.4",
5153
"@vue/cli-plugin-eslint": "^5.0.4",
@@ -70,6 +72,7 @@
7072
"sass": "^1.51.0",
7173
"sass-loader": "^12.6.0",
7274
"storybook": "^6.4.22",
75+
"style-loader": "^3.3.1",
7376
"stylelint": "^14.8.1",
7477
"typescript": "^4.6.4",
7578
"vue-loader": "^17.0.0",

0 commit comments

Comments
 (0)