Created
May 3, 2017 16:03
-
-
Save jantimon/c82a8febfcdeb643d124771200edf0c4 to your computer and use it in GitHub Desktop.
This file contains 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'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
module.exports = { | |
entry: { | |
app: './src/app.js' | |
}, | |
output: { | |
filename: 'bundle.js', | |
path: path.resolve('dist'), | |
}, | |
devtool: 'cheap-module-source-map', | |
module: { | |
loaders: [ | |
{ test: /\.js$/, loader: 'babel' }, | |
{ test: /\.s?css$/, loader: 'style!css!sass' }, | |
], | |
}, | |
plugins: [ | |
new HtmlWebpackPlugin({ | |
template: path.resolve('src','index.html') | |
}) | |
] | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment