Top "Webpack-2" questions

Version 2 of the Webpack bundler.

How to pass .env file variables to webpack config?

I am new to webpack and worked out almost all build sections, but now the problem is that I want …

angularjs webpack environment-variables webpack-dev-server webpack-2
Can't resolve 'babel-loader'

I am trying to configure my first node react app. I keep getting an error that says "Can't resolve babel-loader". …

node.js webpack babeljs node-modules webpack-2
Output an ES module using webpack

With Rollup I can output an ES module by simply setting the format option to 'es'. How can I do …

javascript webpack ecmascript-6 webpack-2 es6-modules
One project with multiple package.json files

I'm relatively new to modern JS development and I need help or advice about this situation I'm in. Situation: We …

node.js reactjs typescript webpack-2
92% chunk asset optimization - webpack

It seems that webpack gets stuck on 92% chunk asset optimization for about 30+ seconds to show a simple js/css change. …

javascript reactjs webpack webpack-2 laravel-mix
`Unexpected token import` in `webpack.config.babel.js` when using `{modules: false}`

I have a React project which uses Webpack as the module bundler, and babel-loader to transform it into ES5, using …

javascript webpack ecmascript-6 babeljs webpack-2
Webpack bundles my files in the wrong order (CommonsChunkPlugin)

What I want is to bundle my JavaScript vendor files in a specific order via CommonsChunkPlugin from Webpack. I'm using …

javascript webpack webpack-2 uglifyjs
webpack dynamic module loader by require

OK, i have searched high and low but cannot reliably deterrmine if this is or is not possible with webpack. …

javascript node.js webpack require webpack-2
Vue is not a constructor

I using webpack, after build and run in chrome show this error,I don't know how to solve it. My …

webpack vuejs2 vue.js webpack-2
Ignore or prevent ESLint errors from breaking the build in a React project (create-react-project)

I've recently created a project with create-react-project. The problem is that, while I'm developing, every time there's a problem with …

reactjs webpack webpack-2 eslint eslintrc