Skip to content

Instantly share code, notes, and snippets.

@vvo
Created June 9, 2015 09:40
Show Gist options
  • Select an option

  • Save vvo/9910510837c738506423 to your computer and use it in GitHub Desktop.

Select an option

Save vvo/9910510837c738506423 to your computer and use it in GitHub Desktop.
webpack example
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Title</h1>
<script src="/bundle.js"></script>
</body>
</html>
{
"scripts": {
"dev": "webpack-dev-server"
}
}
module.exports = {
entry: {
app: './example/app.js'
},
output: {
path: './dist/',
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
contentBase: './example/'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment