Browse Source

Clean up webpack config

Steven Silvester 9 years ago
parent
commit
4a412fc0d1
2 changed files with 4 additions and 2 deletions
  1. 2 0
      .gitignore
  2. 2 2
      examples/lab/webpack.conf.js

+ 2 - 0
.gitignore

@@ -9,6 +9,8 @@ lib/
 example/build
 example/untitled*
 example/Untitled*
+example/*.png
+example/*.gif
 docs
 
 .ipynb_checkpoints

+ 2 - 2
examples/lab/webpack.conf.js

@@ -4,8 +4,8 @@ var ContextReplacementPlugin = require("webpack/lib/ContextReplacementPlugin");
 module.exports = {
   entry: './index.js',
   output: {
-    path: './build',
-    filename: 'bundle.js'
+    filename: './build/bundle.js',
+    chunkFilename: "./build/[id].bundle.js"
   },
   node: {
     fs: "empty"