Skip to content

Instantly share code, notes, and snippets.

@himetani
Created January 1, 2016 00:33
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 himetani/1f8f691c608140891a0c to your computer and use it in GitHub Desktop.
Save himetani/1f8f691c608140891a0c to your computer and use it in GitHub Desktop.
var angular = require('angular');
var app = angular.module('sampleApp',[]);
console.log(app);
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>app</title>
</head>
<body ng-app="sampleApp">
<h1>sampleAppr</h1>
<script src="bundle.js"></script>
</body>
</html>
module.exports = {
context: __dirname + "/app",
entry: "./app.js",
output: {
path: __dirname + "/app",
filename: "bundle.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment