Skip to content

Instantly share code, notes, and snippets.

@ndelangen
Last active July 29, 2019 12:22
Show Gist options
  • Save ndelangen/33eb30c21791b5c5cbcece7f61867d23 to your computer and use it in GitHub Desktop.
Save ndelangen/33eb30c21791b5c5cbcece7f61867d23 to your computer and use it in GitHub Desktop.
Using presets
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