Skip to main content

All Questions

Tagged with
0 votes
0 answers
8 views

Webpack-dev-server serves a directory list instead of the app page on webpack 5

I have looked at various solutions to this but none of them works for me, feel free to ask for more details const webpack = require("webpack"); const webpackDevServer = require("webpack-...
Mayank's user avatar
  • 1
0 votes
0 answers
6 views

Use hash in remote module URL for webpack module federated components

I have a app that loads some module federated components. For example: module.exports = { plugins: [ new ModuleFederationPlugin({ name: 'app', remotes: { remoteComponent1:'...
ninja's user avatar
  • 355
1 vote
0 answers
37 views

How to get url path for CSS at runtime?

I use CSS Modules. I don't need resolving of url, but I need replace url paths with my custom function call so that I could get the full url at runtime by myself with my custom logic. For example, &...
Eugene Starosvetskiy's user avatar
0 votes
0 answers
9 views

webpack: suppress second "webpack compile successfully" line with constant timestamp

I am able to suppress webpack logs to below. Logs for 3 compilations below: Webpack bundle stats plugin took 10174 ms 2024-06-14 13:42:29: webpack compiled successfully 2024-06-14 13:40:31: webpack ...
Deepak Yadav's user avatar
0 votes
1 answer
52 views

Why My Scss Files Generated Also .js extension? ( scss > css and js)

i have a webpack case. everything is good except just one thing. for example /styles/rapid.scss exports like: /styles/rapid.css /styles/rapid.js i dont wanna js file for scss. there is any solution? ...
sawacrow's user avatar
  • 311
0 votes
0 answers
27 views

Webpack Alias Not Resolving Import

i want to integrate something from another repo using webpack 5 module federation.... but i have an issue where it isnt resolving alias. my config is like the following: module.exports = { ... ...
X0r0N's user avatar
  • 1,936
1 vote
0 answers
109 views

Webpack node module getting added in multiple chunks in my react application

In my react application, I am using react-transition-group node module. In the prod build, webpack (5.36.2) is clubbing this module in multiple chunks and not with the vendor even though I have ...
Manu's user avatar
  • 10.8k
0 votes
0 answers
27 views

Additional loader to handle the result of these loaders: Nativescript app build issue

getting below error, when tried to upgrade project to node v20.12.2 & nativescript - 8.7.0 and run 'ns build android' ERROR in ./node_modules/glob/node_modules/minimatch/dist/mjs/ast.js 188:11 ...
user25073491's user avatar
0 votes
1 answer
103 views

Django and Webpack5 - Implementing modern Javascript Tools

I am working on a Django project and want to enhance the front-end using npm and webpack5. My web development experience has been primarily with Django, and I'm new to npm and webpack. I've run into a ...
Franklin's user avatar
  • 121
0 votes
1 answer
61 views

Error: ENOENT: no such file or directory, open '/path/to/entry/file'

I have a VS Code extension which I want to bundle using Webpack. // webpack.config.js: 'use strict'; const path = require('path'); const webpack = require('webpack'); const config = { target: '...
XXDIL's user avatar
  • 318
0 votes
0 answers
30 views

How to globally disable webpack prefetch magic comment

I have few modules lazy loaded and prefetched using the magic comment: /* webpackChunkName: ""*, WebpackPrefetch:true" but I want to disable/enable webpack prefetch based on webpack ...
muhamed ali's user avatar
0 votes
0 answers
28 views

Is there a way to build and inject a file inside a webpack loader?

Is there a way to build and inject a file inside a webpack loader? I want to make an HTML loader which replaces a string with a url of an emitted file i build inside the loader. module.exports = ...
TheWuif's user avatar
  • 1,026
0 votes
1 answer
36 views

Import Values Into JSON File In Webpack

I'm building an app with Webpack and need it to, among other things, emit a manifest.json file for PWA purposes. I want it to be built dynamically so it can get the asset URLs right for the icons (...
Ixonal's user avatar
  • 636
0 votes
0 answers
37 views

how to get bundles in the directory defined by output.path when using webpack-dev-server

I'm reading the webpack5 doc. In the document's Guides -> Development -> Choosing a Development Tool -> Using webpack-dev-server,there is a tip as follows webpack-dev-server serves bundled ...
user24948077's user avatar
0 votes
0 answers
47 views

Not works single-spa-vue and webpack5

I have 2 applications for my single-spa First application webpack.config.js: { mode: vars.webpackMode, entry: options.webpackEntries, experiments: { outputModule: ...
Davron Usmonov's user avatar

15 30 50 per page
1
2 3 4 5
39