Skip to content

Instantly share code, notes, and snippets.

@jantimon
Created May 3, 2017 16:03
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 jantimon/c82a8febfcdeb643d124771200edf0c4 to your computer and use it in GitHub Desktop.
Save jantimon/c82a8febfcdeb643d124771200edf0c4 to your computer and use it in GitHub Desktop.
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