Top "Webpack" questions

Webpack is a static module bundler for modern JavaScript applications.

Expose jQuery to real Window object with Webpack

I want to expose the jQuery object to the global window object that is accessible inside the developer console in …

javascript jquery webpack
Serving static assets in webpack dev server

I run webpack-dev-server from the root folder of my project. I have assets folder in /src/assets that is copied …

webpack webpack-dev-server
Conditional build based on environment using Webpack

I have some things for development - e.g mocks which I would like to not bloat my distributed build …

javascript build conditional require webpack
Webpack: "there are multiple modules with names that only differ in casing" but modules referenced are identical

I'm using webpack 3.8.1 and am receiving several instances of the following build warning: WARNING in ./src/Components/NavBar/MainMenuItemMobile.js …

webpack webpack-hot-middleware
Webpack 4 - How to configure minimize?

Webpack 4 comes with the following statement: webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead. Fair enough, …

javascript webpack webpack-4
webpack --watch isn't compiling changed files

I tried running webpack --watch and after editing my JS files, it doesn't trigger an auto-recompilation. I've tried reinstalling webpack …

javascript webpack fsevents
webpack-dev-server Cannot find module 'webpack'

I'm trying to use webpack-dev-server to run a simple program but I'm getting this error: module.js:471 throw err; ^ Error: …

node.js reactjs webpack webpack-dev-server
configuration.module has an unknown property 'loaders'

my output of error: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the …

reactjs webpack
Webpack Dev Server running on HTTPS/Web Sockets Secure

Normally in developer mode Webpack runs using HTTP. There is usually a web server serving content through HTTP and webpack …

ssl https webpack devserver
how to set up an inline svg with webpack

I am wondering how to set up an inline svg with webpack? I am following the react-webpack-cookbook. I have my …

javascript svg reactjs webpack loader