Created
December 28, 2016 19:40
-
-
Save Chryus/61c2f4da314d2f4c72dd3a694f6b1a62 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
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({ | |
template: __dirname + '/app/index.html', | |
filename: 'index.html', | |
inject: 'body' | |
}) | |
module.exports = { | |
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