Skip to content

Commit

Permalink
fix: dev config
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois committed Jul 11, 2024
1 parent 0745a60 commit c1b7bec
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions component-tools-webapp/src/main/frontend/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,27 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// const webpack = require('webpack');
// const config = require('./webpack.config');
const setupBackend = require("./backend");

// config.devServer = Object.assign(config, {
// before: setupBackend,
// mode: 'development',
// devServer: {
// port: 3000,
// },
// devtool: 'source-map',
// plugins: config.plugins.push(new webpack.EnvironmentPlugin([ 'NODE_ENV' ]))

// });
module.exports = {
output: {
publicPath: "./",
},
devServer: {
setupMiddlewares: setupBackend,
host: "0.0.0.0",
proxy: {
"/api": {
target: process.env.API_URL || "http://localhost:10101",
changeOrigin: true,
secure: false,
},
},
historyApiFallback: true,
},
resolve: {
symlinks: false,
fallback: {
querystring: false,
},
},
watchOptions: {
ignored: "**/node_modules",
Expand Down

0 comments on commit c1b7bec

Please sign in to comment.