Last active
June 27, 2019 19:51
-
-
Save henriqueweiand/e341db32bf33115014a6b7aae853e3ca to your computer and use it in GitHub Desktop.
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
const path = require('path'); | |
module.exports = { | |
entry: path.join(__dirname, 'src', 'index.js'), | |
output: { | |
path: path.join(__dirname, 'public'), | |
filename: 'bundle.js', | |
}, | |
devServer: { | |
contentBase: path.join(__dirname, 'public'), | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.(js|jsx)$/, | |
exclude: /node_modules/, | |
use: { | |
loader: 'babel-loader', | |
}, | |
}, | |
{ | |
test: /\.(sa|sc|c)ss$/, | |
use: [{ | |
loader: 'style-loader', | |
}, { | |
loader: 'css-loader', | |
options: { | |
sourceMap: true, | |
}, | |
}, { | |
loader: 'sass-loader', | |
options: { | |
sourceMap: true, | |
}, | |
}], | |
}, | |
], | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment