1- const { resolve } = require ( 'path' ) ;
2-
1+ const {
2+ resolve
3+ } = require ( 'path' ) ;
34module . exports = {
4- core : { builder : 'webpack5' } ,
5- stories : [ '../src/**/*.stories.mdx' , '../src/**/*.stories.@(js|jsx|ts|tsx)' ] ,
6- addons : [ '@storybook/addon-essentials' ] ,
7- webpackFinal : async ( config , { configType } ) => {
8- // apply any global webpack configs that might have been specified in .storybook/main.js
9-
10- // add your own webpack tweaks if needed
11- config . module . rules . push ( {
12- test : / \. ( g l s l | v s | f s | v e r t | f r a g ) $ / ,
13- exclude : / n o d e _ m o d u l e s / ,
14- use : [ 'raw-loader' , 'glslify-loader' ] ,
15- include : resolve ( __dirname , '../' ) ,
16- } ) ;
5+ stories : [ '../src/**/*.stories.mdx' , '../src/**/*.stories.@(js|jsx|ts|tsx)' ] ,
6+ addons : [ '@storybook/addon-essentials' ] ,
7+ webpackFinal : async ( config , {
8+ configType
9+ } ) => {
10+ // apply any global webpack configs that might have been specified in .storybook/main.js
1711
18- return config ;
19- } ,
20- staticDirs : [ './public' ] ,
21- } ;
12+ // add your own webpack tweaks if needed
13+ config . module . rules . push ( {
14+ test : / \. ( g l s l | v s | f s | v e r t | f r a g ) $ / ,
15+ exclude : / n o d e _ m o d u l e s / ,
16+ use : [ 'raw-loader' , 'glslify-loader' ] ,
17+ include : resolve ( __dirname , '../' )
18+ } ) ;
19+ return config ;
20+ } ,
21+ staticDirs : [ './public' ] ,
22+ framework : {
23+ name : '@storybook/angular' ,
24+ options : { }
25+ } ,
26+ docs : {
27+ autodocs : true
28+ }
29+ } ;
0 commit comments