PublicPath: '/' // base path where referenced files will be look forĪlias: path.resolve(_dirname, 'src') // shortcut to reference src folder from anywhereĬleanOnceBeforeBuildPatterns: Path: path.resolve(_dirname, 'dist'), // base path where to send compiled assets PublicPath: '/', //relative path to output path where devserver will look for compiled files const path = require('path') Ĭonst HtmlWebpackPlugin = require('html-webpack-plugin') Ĭonst = require('clean-webpack-plugin') ĬontentBase: path.join(_dirname, './'), // where dev server will look for static files, not compiled "production": "webpack-dev-server -mode production", At this stage I am on the verge of giving up as this is something that seems basic, but is proving next to impossible!Ĭan anyone shed any light on this for me and point me in the right direction? Ran into different problems along the way but got over them and now I am at the point where I have a Dockerfile that can create an image of my work and run successfully in a container. I am not concerned about that right now, all I want is a simple Dockerfile that will let my production code run on a container. But they used a multistaged Dockerfile and finished it off with nginx. I have been looking up information online and found a few tutorials like this. For development on my environment I had it setup to work fine, but now I want to create a docker image of it and use my app in production mode. I have a react app with a custom webpack setup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |