Skip to main content

All Questions

2 votes
1 answer
497 views

I'm stuck with my React app in production with webpack

For my React application, I am using a Google Maps API key for a component, as well as a mail sending library. The API key and password required for mail sending are **sensitive data that cannot be ...
walkingtomron's user avatar
1 vote
0 answers
201 views

Laravel 8 JS breaking when minified by Mix

I have a project I am working on that works fine with npm run dev/npm run watch. When we moved it to production and ran npm run prod, we had a console error of; t is undefined This error did not show ...
Starquest's user avatar
0 votes
0 answers
766 views

Why is the build folder of my react app empty?

I am using create react app to make a react project.It is running without any problem on the localhost.However When I try to build it for production.The build takes like 5 minutes and then the build ...
Booyakasha's user avatar
0 votes
1 answer
656 views

webpack in production loads old cached less files instead of new server less

I am uploading my ReactJS/less/webpack site to the remote server for the first time, but the only problem is that webpack in production seems to be caching an old version of my less styles. I can ...
ApolloXI's user avatar
0 votes
0 answers
675 views

how to setup browsersync in production server

im new in laravel and vue. i've been trying to use browsersync in server but no luck. successfully setup in my local but when i try to set in server its just not working. so i want my website to auto ...
Ihsan Dn's user avatar
0 votes
0 answers
292 views

Jhipster Angular App in docker container, not running in production mode

Jhipster created angular app have following files in webpack folder webpack.dev.js webpack.prod.js After creation of docker file using following code snippet .... COPY . . RUN npm install ...
ajoy sinha's user avatar
  • 1,214
2 votes
0 answers
390 views

VueJS - process.env.NODE_ENV equals "development" even though "--mode production" is set

I'm trying to get my VueJS app ready for production. Case across the issue in the title. How do I get my app ready from production and distinguish between dev/prod environments, without relying on ...
Chen's user avatar
  • 21
0 votes
1 answer
348 views

Much older version of my Website shows when rebuilding Production Bundle with Webpack

I've noticed that when I rebuild my production bundle of my node.js app using webpack, the site in the browser reverts to a way older version (300+ git commits later). I use pm2 to run my website on ...
Ansjovis86's user avatar
  • 1,535
0 votes
1 answer
671 views

Public assets is 404 on prod build (webpack)

I'm not really familiar with webpack and I have this issue where I can't access my assets on prod - it returns 404 I have this structure: - repo - public - index.html - images - animals ...
I am L's user avatar
  • 4,544
1 vote
0 answers
415 views

Webpack error: static bundle throwing "Uncaught SyntaxError: Invalid or unexpected token" when console is open or sometimes not predictable

Bundled my react code using webpack 4, and deployed it on GCP bucket. It's throwing error "Uncaught SyntaxError: Invalid or unexpected token" sometimes or when developer tools is open not sure about ...
nikmman's user avatar
  • 11
0 votes
1 answer
946 views

Run rails-react with webpacker in production mode. assets:precompile takes very much time

I have a project on rails-react with webpacker. It works perfectly on development mode, but I cannot run it on production mode. I run it inside docker container: FROM ruby:2.5.1 # Install ...
GumarovRinat's user avatar
-2 votes
2 answers
1k views

Issues after Upgrade Angular CLI 1.7.3 to 6.2.2

I have upgraded Angular 5.2.0 project with CLI 1.7.3 to Angular 6.1.7 with CLI 6.2.2. Now when I run ng build --prod, I am getting below error. ERROR in Module build failed (from ./node_modules/mini-...
Bishan's user avatar
  • 15.6k
0 votes
1 answer
2k views

.env file loads cached values

I am using VUE CLI 3, here I have created custom .env file, while development and when I try to access from .env file like this, in .env file, [email protected], In one of the ...
Subash's user avatar
  • 816
1 vote
1 answer
956 views

Different environment files for production and development in vue+webpack app

I'm building a vue app using webpack. Now that I have to deploy the app to a production server I feel the need to have different settings for development and production cases (for example the main url ...
Notbad's user avatar
  • 6,246
2 votes
2 answers
743 views

production webpack main.bundle.js contains full path of files

Here is piece of text from "main.bundle.js" t&&(t.register(u,"ButtonLoaderAtom","/home/ec2-user/<project>/app/atoms/ButtonLoader/index.jsx"),t.register(p,"default","/home/ec2-user/<...
Arup's user avatar
  • 49

15 30 50 per page