Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Webpack configuration babel
module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader']
},
{
test: /\.js$/,
exclude: /node_modules/,
use: ["babel-loader"]
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment