Top "Webpack-2" questions

Version 2 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
Typescript react - Could not find a declaration file for module ''react-materialize'. 'path/to/module-name.js' implicitly has an any type

I am trying to import components from react-materialize as - import {Navbar, NavItem} from 'react-materialize'; But when the webpack is …

reactjs webpack webpack-2
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
Field 'browser' doesn't contain a valid alias configuration

I've started using webpack2 (to be precise, v2.3.2) and after re-creating my config I keep running into an issue I …

npm webpack commonjs webpack-2 package.json
Webpack Installing Bootstrap - missing popper.js.map

I followed the instructions in https://getbootstrap.com/docs/4.0/getting-started/webpack/ and I also installed jquery and popper.js with …

bootstrap-4 webpack-2 popper.js
DevTools failed to parse SourceMap

I am trying to get my Webpack project to have a source map file. I finally got the settings right …

javascript webpack google-chrome-devtools webpack-2
How to import CSS files into webpack?

According to the documentation, CSS file should just be imported. I am just starting with webpack and tried to import …

javascript html css webpack webpack-2
Webpack Exclude a specific file

I have this code In my webpack.config.prod.js and I was wondering how do I exclude all json …

javascript reactjs webpack webpack-2
Module not found: Error: Can't resolve './app/index.vue' vue.js component import ES6

i am still practicing to use webpack2 with vue js and babel but bumped to this error. i don't know …

javascript vue.js babeljs webpack-2
React bootstrap not styling my react components

Just started out using React yesterday so setting up a demo app. Environment is: Typescript Webpack React & React DOM …

reactjs webpack-2