Top "Webpack-4" questions

Webpack is JavaScript module bundler.

MiniCssExtractPlugin public path not working

I am using MiniCssExtractPlugin to lazyload css files in my react application. i have given publicPath option for MiniCssExtractPlugin but …

webpack-4 mini-css-extract-plugin
How to use multiple configuration files in webpack?

I'm building a webpack automated workflow. I completed the development server. All of my development configurations are in webpack.config.…

webpack webpack-dev-server webpack-4
How to dynamically import SVG and render it inline

I have a function that takes some arguments and renders an SVG. I want to dynamically import that svg based …

javascript reactjs webpack webpack-4
webpack 4 disable uglifyjs-webpack-plugin

I have had this problem for the last 2 days. So I decided to completely disable uglifyjs-webpack-plugin from webpack build process. …

webpack uglifyjs webpack-4 webpack-plugin
Getting Error from webpack-cli: "TypeError: merge is not a function" in webpack config

I'm using webpack-merge to combine two webpack.config files together but I keep getting the error "TypeError: merge is not …

reactjs webpack webpack-4 webpack-cli webpack-merge
Load video mp4 webpack loader

How to use loader for mp4 video format with webpcak 4, I try like this: { test: /\.mp4$/, use: 'file-loader', loader: 'file-loader?…

webpack webpack-4 webpack-loader
How to configure webpack 4 to prevent chunks from list of entry points appearing in any other bundle?

I am working on a large project and trying to land webpack 3 -> 4 update. This app has somewhere around 1,000 …

webpack webpack-4
Webpack, Babel 7.4.0 and core-js 3

Given the following package.json { "name": "webpack-babel7", "version": "1.0.0", "main": "index.js", "license": "MIT", "devDependencies": { "@babel/core": "^7.4.4", "@babel/preset-env": "^7.4.4", "babel-loader": "^8.0.5", "webpack": "^4.30.0", "…

webpack babeljs webpack-4
How can I replace files at compile time using webpack?

I have a project with miltiple configuration. The first config is config.dev.js file that contains some development configiration. …

javascript webpack webpack-4 webpack-loader
Webpack 4: mini-css-extract-plugin + file-loader not loading assets

I'm trying to move assets (images and fonts) used in one of my .scssfiles, but it seems that they get …

css webpack sass webpack-4 mini-css-extract-plugin