Top "Webpack-3" questions

Version 3 of the Webpack bundler.

Define global variable with webpack

Is it possible to define a global variable with webpack to result something like this: var myvar = {}; All of the …

javascript webpack webpack-2 webpack-3
How to determine the installed webpack version

Especially during the transition from webpack v1 to v2, it would be important to programmatically determine what webpack version is …

javascript node.js webpack webpack-2 webpack-3
webpack3 jshint-loader does not work

I'm trying to follow this instruction https://webpack.js.org/loaders/jshint-loader/ and get an error: My config file: error …

webpack jshint webpack-3
Webpack 4 migration CommonsChunkPlugin

I need help migrating the following code from webpack 3 to 4. new webpack.optimize.CommonsChunkPlugin({ minChunks: module => module.context &&…

javascript webpack webpack-3 commonschunkplugin webpack-4
Webpack can't load fonts (ttf)

Currently I have 3 fonts that I want to add to my React project:a, a light, a bold. My file …

reactjs webpack fonts font-face webpack-3
How to fix modules with "ModuleConcatenation bailout: Module is not an ECMAScript module" bailout message?

Webpack3 comes with the ModuleConcatenation plugin that when used with the --display-optimization-bailout flag will give you the reason for bailout. …

webpack webpack-3
Webpack - How to load non module scripts into global scope | window

so i have a few vendor files that i need to run from window scoped (it's a bunch of window …

webpack webpack-3
Module Build Failed. TypeError: this.getResolve is not a function

I am getting this error when compiling sass. webpack: 3.12.0, sass-loader: 8.0.0. Also, I use angular2. { test: /\.(scss|sass)$/, use: [ "to-string-loader", { loader: "…

angular sass sass-loader webpack-3
Module not found when import .jsx file

I can't find out the solution. I'm using Reactstrap (CSS framework), React, Express, and Webpack. I was success to import …

reactjs webpack-3 reactstrap
How to exclude a module from webpack, and instead import it using es6

I am currently using webpack to bundle up a javascript file with react. This file also has another import statement …

javascript es6-modules webpack-3