Skip to main content
0 votes
0 answers
13 views

Using webpack-merge for both module loaders and plugins

We have multiple webpack configuration files, and I need to restructure them to share common configuration Current file structure webpack.prod.js webpack.dev.js New file structure webpack.common.js ...
David Driver's user avatar
0 votes
1 answer
3k views

TypeError: Merging undefined is not supported

I got this error when running $ quasar dev on my Vue project ~/project/node_modules/webpack-merge/dist/index.js:63 throw new TypeError("Merging undefined is not supported"); ...
angelokh's user avatar
  • 9,448
2 votes
0 answers
832 views

How do you use webpack-merge and react?

I have been trying to make a webpack config for a react based app, it was working before I started using webpack-merge and had the single webpack.config.js file. I have done a lot of reading and I ...
Lyderies's user avatar
56 votes
2 answers
41k views

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 a function when I run the command "webpack --config ./config/...
Hana Likes Coding's user avatar
2 votes
1 answer
5k views

TS2345 Argument of type is not assignable to parameter of type: using one module that's declared in another module

I've been trying to figure out an issue using Webpack, webpack-merge, and separate development Webpack files using TypeScript, and I've sort of realized that I need to declare a type alias function ...
rpivovar's user avatar
  • 3,468
8 votes
2 answers
7k views

Using webpack-merge to prepend loaders to a rules `use` array

I use webpack-merge to merge my webpack config files for dev and prod environments. To extract CSS in prod mode, I use the mini-css-extract-plugin. According to its documentation, I use it in place of ...
r0skar's user avatar
  • 8,726