Skip to main content

All Questions

Tagged with
3 votes
0 answers
81 views

what's the difference between devMiddleware.publicPath and static.publicPath

https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md was reading this and noticed that you can use publicPath 2 ways. I'm not sure what the difference is.
randomuser0291's user avatar
5 votes
1 answer
2k views

What are usedExports and sideEffects?

What exactly is the difference between usedExports in optimization of webpack config and sideEffects in package.json?
VYSHNAV RAJ S's user avatar
0 votes
1 answer
224 views

the page refreshes automatically after requesting data [duplicate]

I was trying to request some data using axios and then log that data into the console, however once the try statement is executed the data is loged into the console but the page refreshes immediately ...
Ma_20Hs's user avatar
0 votes
1 answer
2k views

Webpack config + set multiple public path values

I have two different modules like students and staff. For students files should be created into the dist folder with static path /students' - publicPath: "/students/". For staff files ...
RSKMR's user avatar
  • 1,862
1 vote
2 answers
3k views

Unable to configure svgo-loader (webpack)

I'm using svgo-loader to optimize the svg images and its using the default configuration for this. I want to add some custom configuration like I dont want to remove the viewBox from svg as it makes ...
Mukul Kumar Jha's user avatar
12 votes
4 answers
38k views

npm install error while use webpack, Could not resolve dependency

The error as follows: > npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: [email protected] npm ERR! node_modules/webpack npm ERR! dev ...
Crystal's user avatar
  • 141
0 votes
1 answer
527 views

Can I load a script and then make a variable pointing to that loaded script?

Is there any way in javascript or react to load a script inside the index.html and then import that loaded script in another file? index.html <body> <script type="text/...
Pep's user avatar
  • 667
2 votes
0 answers
606 views

How to create a subdirectory with webpack?

I am trying to bundle multiple HTML files in different directories using webpack but can't get it to work. The folder structure is: app /25off **-index.html** /assets /fonts /images /...
Scott's user avatar
  • 33
0 votes
1 answer
145 views

How to put webPack config file in to node modules?

Please help me to find a solution: I need to create custom webPack config and put it into node_modules? Then I need to use it in any project with the possibility to extend it with local webPack config ...
 Alex Alex's user avatar
0 votes
0 answers
2k views

How to run webpack-dev-server on localhost without a port

I have a React app, to run it locally I use webpack-dev-server. This is how my command looks like: "scripts": { "dev-server": "webpack-dev-server --config ./webpack.dev.js --open --https --hot --...
Anna Miroshnichenko's user avatar
1 vote
0 answers
312 views

ElementUi: Individual components have same size as full bundle?

I want to use some handpicked components from ElementUi instead of the full bundle. I am using laravel-mix to compile and minify my bundles. It seems that it does not matter if I only register 2 ...
Adam's user avatar
  • 28k
1 vote
0 answers
484 views

externals webpack not working (same result as without it)

As I understand, externals property is to not include the dependency in the final bundle. Am I right? here is what I do: (i am writing a library). this is put in webpack's config. externals: { ...
Nika Kurashvili's user avatar
0 votes
1 answer
1k views

React Yarn build fails with unexpected behaviour

While running a yarn build, an infinite loop was induced with below warning: (node:7424) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https:...
Mohit Gupta's user avatar
1 vote
0 answers
131 views

How can I serve images from a subdirectory path (/public) at the root path (/) with webpack server?

I am developing components with Playroom for use in a Next.js application. Right now, I am trying to figure out how to configure Webpack to resolve the following inconsistency: I use Next.js for my ...
Liam Duffy's user avatar
0 votes
0 answers
193 views

How to speed up my .NET core + Vuejs with webpack web app?

I am building a web app in Visual studio and I am using Vuejs for frontend and .NET for backend. I have used webpack as the js bundler . Below is my webpack.config.cs file var path = require('path') ...
BeaST 30's user avatar
  • 736

15 30 50 per page
1
2 3 4 5
64