Questions tagged [webpack-config]

42 questions
0
votes
2 answers

production mode build gives different hashed file name for js files

We're developing an Office Addin application with Nodejs server using typescript. In development, everything is fine. however, when we wanna take a build of the application on production mode and deploy its ./dist folder to azure, some js libraries…
praksis
  • 1
  • 1
0
votes
0 answers

How to run the webpack 3 project in a local system?

I have a webpack project 3 and I want to run it on my local system. Here is my webpack config file and the package.json { "private": true, "name": "XXx", "version": "Xxx", "description": "X", "main": "index.js", "dependencies": { …
shrey
  • 1
  • 2
0
votes
0 answers

Is it possible to use "module imports" inside webpack.config.ts itself?

TLDR Is is possible to use relative imports (like import foo from 'path/to/foo';) inside webpack.config.ts and other inner modules which are also imported in webpack.config.ts ? Long description It is commonly known how to configure Webpack and…
0
votes
0 answers

How to remove duplicated dependencies code from webpack bundle?

I have these local NPM packages: common-package ^ ^ | | father-package mother-package ^ ^ | | son-package Both father-package…
Elkin
  • 880
  • 2
  • 12
  • 26
0
votes
1 answer

convert webpack config to next config?

i have the following webpack config from https://github.com/shellscape/webpack-plugin-serve/blob/master/recipes/watch-static-content.md: const sane = require('sane'); const { WebpackPluginServe: Serve } = require('webpack-plugin-serve'); const…
deadcoder0904
  • 7,232
  • 12
  • 66
  • 163
0
votes
0 answers

error js + firebase. Uncaught Error: Module parse failed: Unexpected character '​'

[![error method ][4]][4] I think that the problam is in the webpack.config.js code but I dont know
elad
  • 21
  • 3
0
votes
1 answer

How can I change the address nuxt/webpack is attempting to fetch subsequent chunks from?

My controller serves my nuxt app through another app's controller. e.g. hitting https://google.com/my-address will actually reach out to a nuxt app hosted at https://custom-address/. The initial load returns the server side render html and…
0
votes
1 answer

Google spreadsheet api throws crypto.createSign error in react app with webpack

I have a react app with webpack recently upgraded to version 5. I am getting the following error and need help in fixing it Uncaught (in promise) TypeError: crypto.createSign is not a function at Object.sign (index.js:151) at Object.jwsSign…
0
votes
1 answer

Webpack devServer no output files generated?

I'm learning Webpack and trying the plugin webpack-dev-server. I'm learning by trying to change its settings in webpack.config.js. Before change: output: { path: path.resolve(__dirname, 'dist') }, devServer: { contentBase: path.join(__dirname,…
NeoZoom.lua
  • 2,269
  • 4
  • 30
  • 64
0
votes
1 answer

"Fallback" rule in Webpack config

Is there a way to define a "fallback" rule for Webpack, so that if nothing else matched from .module.rules, then this rule is applied? I have tried specifying a rule in last position with a very permissive test:, however it seems to take precedence…
P Varga
  • 19,174
  • 12
  • 70
  • 108
0
votes
1 answer

How to specify a different path AND filename for each entry point in your webpack config? (my config is invalid despite following the docs)

I want to be able to have a specific path AND filename for each entry in my webpack config. Specifically, this example from the webpack "Output Filename" documentation is what I want: module.exports = { //... entry: { app: './app.js', …
robquinn
  • 89
  • 1
  • 9
1 2
3