forked from input-output-hk/daedalus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5474c9a
commit fadfb7c
Showing
5 changed files
with
71 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
alias: { | ||
Renderer: path.resolve(__dirname, 'source/renderer'), | ||
}, | ||
stories: ['./stories/**/*.stories.@(js|mdx|ts)'], | ||
addons: [ | ||
'@storybook/addon-knobs', | ||
'@storybook/addon-actions', | ||
'@storybook/addon-links', | ||
'@storybook/builder-webpack5', | ||
'@storybook/manager-webpack5', | ||
'./addons/DaedalusMenu/register', | ||
], | ||
core: { | ||
builder: 'webpack5', | ||
}, | ||
// Make whatever fine-grained changes you need | ||
webpackFinal: async (config, { configType }) => { | ||
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION' | ||
// You can change the configuration based on that. | ||
// 'PRODUCTION' is used when building the static version of storybook. | ||
|
||
// Make whatever fine-grained changes you need | ||
config.module.rules.push({ | ||
test: /\.scss/, | ||
use: [ | ||
'style-loader', | ||
{ | ||
loader: 'css-loader', | ||
options: { | ||
modules: { | ||
localIdentName: '[name]_[local]', | ||
}, | ||
sourceMap: true, | ||
importLoaders: true, | ||
}, | ||
}, | ||
{ | ||
loader: 'sass-loader', | ||
options: { | ||
sourceMap: true, | ||
implementation: require.resolve('sass'), | ||
}, | ||
}, | ||
{ | ||
loader: 'babel-loader', | ||
options: { | ||
cacheCompression: false, | ||
cacheDirectory: true, | ||
plugins: [require.resolve('react-refresh/babel')].filter(Boolean), | ||
}, | ||
}, | ||
], | ||
}); | ||
|
||
// Return the altered config | ||
return config; | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.