diff --git a/config/webpack.production.config.js b/config/webpack.production.config.js index 5ba8dca6..19602973 100644 --- a/config/webpack.production.config.js +++ b/config/webpack.production.config.js @@ -13,7 +13,7 @@ module.exports = { app: './src/index.jsx', }, output: { - path: "./build/build/", + path: path.join(__dirname, '..', 'build' , 'build'), filename: '[name].[contenthash].js', chunkFilename: '[contenthash].js' }, diff --git a/config/webpack.profiling.config.js b/config/webpack.profiling.config.js index be2be24f..dde4fb74 100644 --- a/config/webpack.profiling.config.js +++ b/config/webpack.profiling.config.js @@ -1,10 +1,11 @@ const webpackProdConfig = require('./webpack.production.config'); +var path = require('path'); module.exports = { ...webpackProdConfig, output: { ...webpackProdConfig.output, - path: "./build/profiling/", + path: path.join(__dirname, '..', 'build' , 'profiling'), }, resolve: { ...webpackProdConfig.resolve,