Category : webpack

I’m trying to migrate some Webpack based projects to run inside docker containers and have some issues with configuring networking. Our WebPack devServer is configured in the following way: { host: ‘dev.ng.com’, port: 4000, compress: true, disableHostCheck: true } in /etc/hosts file we have the following record: 127.0.0.1 dev.ng.com and everything works fine. When I ..

Read more

I’am trying to use webpack + reactjs to run a project. here are the main files: # docker-compose.yaml web: build: . ports: – "3000:3000" volumes: – .:/usr/app/selina-server:rw environment: – NODE_ENV=dev command: > sh -c ‘ if test -d node_modules; then echo node_modules_exists ; else cp -a /tmp/node_modules /usr/app/selina-server; fi && npm install && /usr/local/bin/node ./index.js ..

Read more

My Docker+NestJS+Webpack development environment is not running as efficiently as I would like. Current behavior Using Webpack with Hot Module Replacement Plugin is slower than using Nest-CLI with watch: nest build –webpack –webpackPath webpack-hmr.config.js –watch is slower than nest start –debug –watch. It keeps rebuilding my source files; I’m assuming it keeps rebuilding the entire ..

Read more

Do 90 seconds (occasionally even more) considered as extremely slow build time with Gulp? I’m using Django, Tailwindcss, Gulp, Webpack, and Docker. I tried ‘npm run dev’ without docker and it took 41 seconds. Should I optimize my Gulp configurations in this case? Or is it a normal build time when using Docker? node_1 | ..

Read more

When running docker-compose up, I get the following error: webpacker_1 | yarn run v1.22.5 webpacker_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. webpacker_1 | error Command "webpack" not found. neilsite_webpacker_1 exited with code 1 My Dockerfile is: FROM ruby:2.6.5 RUN apt-get update && apt-get install -y build-essential libpq-dev RUN curl -sL https://deb.nodesource.com/setup_14.x | ..

Read more