Top "Webpack" questions

Webpack is a static module bundler for modern JavaScript applications.

How to set build .env variables when running create-react-app build script?

I'm using the following environment variable in my create-react-app: console.log(process.env.REACT_APP_API_URL) // http://localhost:5555 It …

reactjs webpack frontend create-react-app react-scripts
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
How to get access to webpack-dev-server from devices in local network?

There is some webpack dev server config (it's part of the whole config): config.devServer = { contentBase: './' + (options.publicFolder ? …

javascript node.js networking webpack web-development-server
How to load all files in a directory using webpack without require statements

I have a large amount of javascript files split into 4 subdirectory in my app. In grunt I grab all of …

javascript build webpack
How to tell webpack dev server to serve index.html for any route

React router allows react apps to handle /arbitrary/route. In order this to work, I need my server to send …

reactjs ecmascript-6 webpack react-router
Uncaught Error: Unexpected directive 'MyComboBox' imported by the module 'AppModule'. Please add a @NgModule annotation

I've a custom component (MyComboBox) which has kendo-combobox inside. When I use my core module, webpack compilation ends successfully but …

angular typescript webpack kendo-ui
Error: Cannot resolve module 'style-loader'

I'm using style-loader with webpack and react framework. When I run webpack in terminal i'm getting Module not found: Error: …

javascript reactjs webpack webpack-style-loader
Cannot find module '@babel/core'

I am following along with this webpack4/react tutorial: https://www.youtube.com/watch?v=deyxI-6C2u4 I have …

node.js reactjs npm webpack babeljs
Webpack and external libraries

I’m trying out webpack (http://webpack.github.io/) and it looks really nice, however I’m kind of stuck …

javascript require commonjs webpack
Webpack - Critical dependency: the request of a dependency is an expression

I am getting three warning messages when importing request in a barebone webpack project. A minimal example to reproduce the …

webpack request ajv