Update where the bundle goes for sanity

This commit is contained in:
Kent C. Dodds 2016-05-02 22:28:05 -06:00
parent 5a50329436
commit 5eb57c5fea
2 changed files with 6 additions and 5 deletions

View File

@ -6,8 +6,8 @@
<link rel="shortcut icon" href="/favicon.ico"> <link rel="shortcut icon" href="/favicon.ico">
<style>.hide {display: none;}</style> <style>.hide {display: none;}</style>
</head> </head>
<body> <body class="hide">
<section class="todoapp hide"> <section class="todoapp">
<header class="header"> <header class="header">
<h1>todos</h1> <h1>todos</h1>
<input class="new-todo" placeholder="What needs to be done?" autofocus> <input class="new-todo" placeholder="What needs to be done?" autofocus>
@ -33,7 +33,7 @@
<button class="clear-completed">Clear completed</button> <button class="clear-completed">Clear completed</button>
</footer> </footer>
</section> </section>
<footer class="info hide"> <footer class="info">
<p>Double-click to edit a todo</p> <p>Double-click to edit a todo</p>
<p>Created by <a href="http://twitter.com/oscargodson">Oscar Godson</a></p> <p>Created by <a href="http://twitter.com/oscargodson">Oscar Godson</a></p>
<p>Refactored by <a href="https://github.com/cburgmer">Christoph Burgmer</a></p> <p>Refactored by <a href="https://github.com/cburgmer">Christoph Burgmer</a></p>
@ -41,6 +41,6 @@
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p> <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer> </footer>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Promise"></script> <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Promise"></script>
<script src="bundle.js"></script> <script src="/dist/bundle.js"></script>
</body> </body>
</html> </html>

View File

@ -1,8 +1,9 @@
const path = require('path')
module.exports = { module.exports = {
entry: './js/app.js', entry: './js/app.js',
output: { output: {
filename: 'bundle.js', filename: 'bundle.js',
path: __dirname, path: path.resolve(__dirname, './dist'),
}, },
context: __dirname, context: __dirname,
devtool: 'eval', devtool: 'eval',