Skip to content

Instantly share code, notes, and snippets.

@pearofducks
Created May 29, 2016 07:52
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 pearofducks/dc973fa968954d0158c83eda726ce9ac to your computer and use it in GitHub Desktop.
Save pearofducks/dc973fa968954d0158c83eda726ce9ac to your computer and use it in GitHub Desktop.
right amount of logging
var HtmlWebpackPlugin = require('html-webpack-plugin')
var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
template: __dirname + '/app/index.html',
filename: 'index.html',
inject: 'body'
})
module.exports = {
devtool: 'cheap-module-eval-source-map',
devServer: {
stats: 'errors-only'
},
entry: [
'./app/index.js'
],
output: {
path: __dirname + '/dist',
filename: "index_bundle.js"
},
module: {
loaders: [
{test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}
]
},
plugins: [HtmlWebpackPluginConfig]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment