Pārlūkot izejas kodu

fix example build output path

Evan You 9 gadi atpakaļ
vecāks
revīzija
3bc6b9e3b9

+ 1 - 1
examples/counter/index.html

@@ -6,6 +6,6 @@
   </head>
   </head>
   <body>
   <body>
     <counter></counter>
     <counter></counter>
-    <script src="example.build.js"></script>
+    <script src="build.js"></script>
   </body>
   </body>
 </html>
 </html>

+ 1 - 1
examples/shopping-cart/index.html

@@ -6,6 +6,6 @@
   </head>
   </head>
   <body>
   <body>
     <app></app>
     <app></app>
-    <script src="example.build.js"></script>
+    <script src="build.js"></script>
   </body>
   </body>
 </html>
 </html>

+ 1 - 1
examples/todomvc/index.html

@@ -6,6 +6,6 @@
   </head>
   </head>
   <body>
   <body>
     <app></app>
     <app></app>
-    <script src="example.build.js"></script>
+    <script src="build.js"></script>
   </body>
   </body>
 </html>
 </html>

+ 2 - 2
examples/webpack.shared.config.js

@@ -1,8 +1,8 @@
 module.exports = {
 module.exports = {
   entry: './main.js',
   entry: './main.js',
   output: {
   output: {
-    path: __dirname,
-    filename: 'example.build.js'
+    path: process.cwd(),
+    filename: 'build.js'
   },
   },
   module: {
   module: {
     loaders: [
     loaders: [