Skip to content

Commit

Permalink
remove unused deps & code
Browse files Browse the repository at this point in the history
  • Loading branch information
50l3r committed Oct 3, 2023
1 parent 97fd34b commit 80e9bd9
Show file tree
Hide file tree
Showing 9 changed files with 9,344 additions and 39,100 deletions.
100 changes: 0 additions & 100 deletions .storybook/main.js.old

This file was deleted.

85 changes: 38 additions & 47 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ const config: StorybookConfig = {
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-dark-mode',
'@storybook/addon-mdx-gfm',
{
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss')
}
}
}
'storybook-dark-mode'
],
framework: {
name: '@storybook/vue3-vite',
Expand All @@ -32,48 +23,48 @@ const config: StorybookConfig = {
docs: {
autodocs: false,
defaultName: 'Documentación'
},
async viteFinal(config, { configType }) {
config.resolve.alias = {
...config.resolve.alias,
'@': path.resolve(__dirname, '../src'),
'tailwind.config': path.resolve(__dirname, '../tailwind.config.js')
}
}
// async viteFinal(config, { configType }) {
// config.resolve.alias = {
// ...config.resolve.alias,
// '@': path.resolve(__dirname, '../src'),
// 'tailwind.config': path.resolve(__dirname, '../tailwind.config.js')
// }

// config.build = {
// ...config.build,
// ...{
// rollupOptions: {
// output: { sanitizeFileName: sanitizeFileName }
// }
// }
// }
// // config.build = {
// // ...config.build,
// // ...{
// // rollupOptions: {
// // output: { sanitizeFileName: sanitizeFileName }
// // }
// // }
// // }

config.optimizeDeps = {
...config.optimizeDeps,
include: ['tailwind.config', 'react']
}
// config.optimizeDeps = {
// ...config.optimizeDeps,
// include: ['tailwind.config', 'react']
// }

config.plugins.push(VitePWA({}))
// config.plugins.push(VitePWA({}))

config.plugins.push(
viteStaticCopy({
targets: [
{
src: './plugin.js',
dest: './'
}
]
})
)
// config.plugins.push(
// viteStaticCopy({
// targets: [
// {
// src: './plugin.js',
// dest: './'
// }
// ]
// })
// )

// config.build.commonjsOptions = {
// ...config.build.commonjsOptions,
// include: ['../tailwind-config.js', '../node_modules/**'],
// esmExternals: true
// }
// // config.build.commonjsOptions = {
// // ...config.build.commonjsOptions,
// // include: ['../tailwind-config.js', '../node_modules/**'],
// // esmExternals: true
// // }

return config
}
// return config
// }
}
export default config
5 changes: 0 additions & 5 deletions .storybook/manager.js

This file was deleted.

145 changes: 0 additions & 145 deletions .storybook/preview.js.old

This file was deleted.

Loading

0 comments on commit 80e9bd9

Please sign in to comment.