Created
May 29, 2016 07:52
-
-
Save pearofducks/dc973fa968954d0158c83eda726ce9ac to your computer and use it in GitHub Desktop.
right amount of logging
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
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