Skip to content

Commit

Permalink
Workaround: Ignore the custom vue sfc block
Browse files Browse the repository at this point in the history
  • Loading branch information
bodograumann committed Oct 2, 2019
1 parent ea957b4 commit 87ce1fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/storybook/ignore-loader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function () {
return ''
}
4 changes: 4 additions & 0 deletions config/storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = ({ config }) => {
config.module.rules.push({
resourceQuery: /blockType=custom/,
loader: require.resolve('./ignore-loader.js')
})
config.module.rules.push({
test: /\.vue$/,
loader: 'storybook-addon-vue-info/loader',
Expand Down

0 comments on commit 87ce1fe

Please sign in to comment.