Created
July 29, 2019 11:50
-
-
Save ndelangen/597affba994d3adce8c3424822a22ce4 to your computer and use it in GitHub Desktop.
Configuration with webpack & babel
This file contains hidden or 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
export const entries = ['**/*.stories.[t|j]s']; | |
export const babel = async (base, config) => ({ | |
rootMode: 'upward', | |
sourceType: 'unambiguous', | |
}); | |
export const webpack = async (base, config) => { | |
const { default: webpackMerge } = await import('webpack-merge'); | |
return webpackMerge(base, { | |
module: { | |
rules: [{ | |
test: /.scss/, | |
loader: 'sass-loader', | |
}], | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment