Skip to content

Instantly share code, notes, and snippets.

@ndelangen
Created July 29, 2019 11:50
Show Gist options
  • Save ndelangen/597affba994d3adce8c3424822a22ce4 to your computer and use it in GitHub Desktop.
Save ndelangen/597affba994d3adce8c3424822a22ce4 to your computer and use it in GitHub Desktop.
Configuration with webpack & babel
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