title: Cannot find module "bundle.js"
body: <p>I have a strange problem.... (Please, ignore my bad English :v)</p>
  
  <p>I'm making app using HTML/CSS and js with jQuery. I'm using webpack too. I was using webpack-dev-server command since today - everything was working perfect. I wanted to generate single file - "bundle.js" without using server, cause i wanted to open app at another pc, without webpack.</p>
  
  <p><a href="https://i.stack.imgur.com/BdMxW.jpg" rel="nofollow noreferrer">That's how game looks like when it works</a> </p>
  
  <p>When I changed config in package.json from:</p>
  
  <pre><code>"start": "webpack-dev-server ./src/scrable.js"
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>"start": "webpack ./src/scrable.js ./bundle.js"
  </code></pre>
  
  <p>I don't have any errors in my CMD console, when I typed "npm start".</p>
  
  <p>But, when I opened my index.html file I saw in "source" mode that I have one error, which means that browser 'Cannot find module "bundle.js"'.</p>
  
  <p>App is working, but not like it should - elements react for clicks, they're running some functions, but... just look at this:</p>
  
  <p><a href="https://i.stack.imgur.com/P462X.jpg" rel="nofollow noreferrer">That's how game looks like when it doesn't work</a></p>
  
  <p>Do you have any ideas? </p>
  
  <p>This is my package.json file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "name": "jstest_",
    "version": "1.0.0",
    "description": "",
    "main": "scrable.js",
    "scripts": {
      "start": "webpack ./src/scrable.js ./bundle.js"
        
    },
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "css-loader": "^0.28.0",
      "style-loader": "^0.16.1",
      "webpack": "^2.3.2",
      "webpack-dev-server": "^2.4.2"
    }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>And this is my webpack.config.js file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var debug = process.env.NODE_ENV !== "production";
  var webpack = require('webpack');
  
  module.exports = {
    context: __dirname,
    devtool: debug ? "inline-sourcemap" : null,
    entry: "./src/scrable.js",
    output: {
      path: __dirname,
      filename: "bundle.js",
    },
    plugins: debug ? [] : [
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
    ],
    module: {
      loaders: [
        { test: /\.css$/, loader: 'style-loader!css-loader' }
      ]
    }
  };</code></pre>
  </div>
  </div>
  </p>