-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Storybook to Storybook, as well as updated config and addon registration. * Completely override the Storybook webpack 'rules' configuration
- Loading branch information
Showing
9 changed files
with
3,509 additions
and
3,924 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '@storybook/addon-actions/register' |
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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
const { rules, loaders, plugins, stats } = require('webpack-atoms') | ||
const { rules } = require('webpack-atoms') | ||
|
||
const browsers = ['last 2 versions', 'ie >= 10'] | ||
|
||
module.exports = function(config) { | ||
return { | ||
...config, | ||
module: { | ||
rules: [ | ||
rules.js(), | ||
rules.fonts(), | ||
rules.images(), | ||
rules.css(), | ||
rules.less({ browsers }), | ||
], | ||
}, | ||
plugins: [...config.plugins], | ||
} | ||
module.exports = function({ config }) { | ||
config.module.rules = [ | ||
rules.js(), | ||
rules.fonts(), | ||
rules.images(), | ||
rules.css(), | ||
rules.less({ browsers }), | ||
] | ||
|
||
return config | ||
} |
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
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
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
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
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
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
Oops, something went wrong.