Created
May 6, 2017 05:49
-
-
Save b-tiwari/7b3984b653b4288d90223c093679e2c1 to your computer and use it in GitHub Desktop.
Webpack2 Beginners guide - webpack.config.js
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'); | |
module.exports = { | |
entry: "./src/scripts/app.js", //relative to root of the application | |
output: { | |
filename: "./dist/app.bundle.js" //relative to root of the application | |
}, | |
plugins: [ | |
new HtmlWebpackPlugin({ | |
hash: true, | |
filename: './dist/index.html' //relative to root of the application | |
}) | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment