Skip to content

Instantly share code, notes, and snippets.

@anurag-majumdar
Last active February 9, 2019 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anurag-majumdar/979d0856b84fb9036f7511c24689e536 to your computer and use it in GitHub Desktop.
Save anurag-majumdar/979d0856b84fb9036f7511c24689e536 to your computer and use it in GitHub Desktop.
module.exports = {
entry: {
// Mention Entry File
},
output: {
// Mention Output Filenames
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
},
{
test: /\.scss$/,
use: [
'style-loader',
MiniCssExtractPlugin.loader,
'css-loader',
'sass-loader'
]
}
]
},
plugins: [
new MiniCssExtractPlugin({
filename: '[name].css'
}),
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment