Skip to content

Commit

Permalink
fix: dotenv config paths
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Feb 27, 2021
1 parent 38694aa commit abe7968
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/react-webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ const {

const isProd = process.env.NODE_ENV === 'production';

const outFolder = 'build';
const outFolder = process.env.BUILD_PATH || 'build';

const buildOptions = {
...defaultCompileProps,
configPath: '.config',
...process.senv,
...{
distFolder: process.env.distFolder || path.join(process.cwd(), outFolder),
distFolder: process.env.DIST_PATH || path.join(process.cwd(), outFolder),
staticFolder:
process.env.staticFolder || path.join(process.cwd(), outFolder, 'static'),
process.env.STATIC_PATH || path.join(process.cwd(), outFolder, 'static'),
},
};
const config = {
Expand Down

0 comments on commit abe7968

Please sign in to comment.