Category : webpack

I have a multi-stage Dockerfile for building a Rails app that includes webpacked frontend assets. The step with RUN bin/rails assets:precompile calls webpack to build all the .js and .css assets to publish to public/packs. This works fine. The problem is, the changes from this RUN step are not persisted. One would expect the following ..

Read more

I currently have a Rails 6 app up and running using these relevant gems/libraries: ‘rails’, ‘6.1.1’ (Ruby gem) ‘webpacker’, ‘5.1.1’ (Ruby gem) "@rails/webpacker": "^5.1.1" (NPM package) "webpack": "^4.0.0" (NPM package) "webpack-cli": "^3.2.1" (NPM package) "webpack-dev-server": "^3.1.14" (NPM package) My webpacker.yml file contains the following dev server config: development: <<: *default compile: true dev_server: https: false ..

Read more

Hi try to deploy my React-App with Docker and Webpack. My problem is that I want to inject my Environment Variables at runtime. If I run my docker I want that the env ENV_TEST has the value testValue docker run -p 8080:8080 -e ENV_TEST=testValue client Webpack-file: new webpack.DefinePlugin({ "process.env.ENV_TEST": JSON.stringify( process.env.ENV_TEST ), }), Docker-file: ENV ..

Read more

For some strange reason, while running the production build in a docker container, webpack incorrectly attempts to import named imports as default. But running the production build directly on my Mac does not throw any errors. More strangely is the fact that everything worked just fine a couple of weeks ago. Here’s a screenshot of ..

Read more

I am trying to get my KotlinJS running in a Docker container. Normally this should not be a problem. The programm itself is a KVision-website and runs without errors. When putting it into a Docker container however I get the following lines of error: :browserDevelopmentRun > 100%✖ 「wdm」: Hash: 5648f22f33affcbeb012 Version: webpack 4.41.2 Time: 5665ms ..

Read more