title: Add a specific node module in webpack bundle
body: <p>I have added one of Bulma extensions in my react project 
  <a href="https://wikiki.github.io/components/quickview/" rel="nofollow noreferrer">https://wikiki.github.io/components/quickview/</a></p>
  
  <p>To use it I have installed it using npm &amp; extension requires to add below line when DOM is completely loaded, so I added it in componentDidMount</p>
  
  <pre><code>var quickviews = bulmaQuickview.attach();
  </code></pre>
  
  <p>and below line in my index.html </p>
  
  <pre><code>&lt;script type="text/javascript" src="/node_modules/bulma-extensions/bulma-quickview/dist/js/bulma-quickview.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I am using webpack to bundle &amp; have excluded all node modules from bundle.</p>
  
  <p><strong>Problem :</strong>  In development environment for webpack it works fine but after bundling for production it gives me error that </p>
  
  <blockquote>
    <p>bulmaQuickview is not defined</p>
  </blockquote>
  
  <p>How can I bundle a specific node module in my webpack bundle? and what will be the correct reference to add.</p>
  
  <p>Webpack config</p>
  
  <pre><code>module.exports = {
      target: 'web',
      entry: "./index.js",
      output: {
          filename: "bundle.js"
      },
      devtool: 'eval-source-map',
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: {
                      loader: "babel-loader"
                  }
              },
              {
                  test: /\.css$/,
                  use: ExtractTextPlugin.extract({
                      fallback: "style-loader",
                      use: "css-loader"
                  })
              },
              {
                  test: /\.(png|jpg)$/,
                  use: [{
                      loader: 'url-loader',
                      options: {
                          limit: 8000, // Convert images &lt; 8kb to base64 strings
                          name: 'images/[hash]-[name].[ext]'
                      }
                  }]
  
              },
              {
                  test: /\.(png|svg|jpg|gif)$/,
                  include: path.join(__dirname, 'dist/image'),
                  loader: 'file-loader'
  
              }
          ]
      },
      plugins: [new WebpackNotifierPlugin(), new BrowserSyncPlugin(), new ExtractTextPlugin("styles.css"),
          new webpack.DefinePlugin({
              'API_URL': API_URL[environment]
          })
      ]
  };
  </code></pre>