Skip to content

Commit

Permalink
issue #6763 : set a better value for process in the manager webpack c…
Browse files Browse the repository at this point in the history
…onfig (#6767)

issue #6763 : set a better value for process in the manager webpack config
  • Loading branch information
ndelangen authored May 17, 2019
2 parents de90d22 + 9d065e7 commit 3b6e1d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/core/src/server/manager/manager-webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ export default ({ configDir, configType, entries, dll, outputDir, cache, babelOp
}),
template: require.resolve(`../templates/index.ejs`),
}),
new webpack.DefinePlugin({ 'process.env': stringified }),
new CaseSensitivePathsPlugin(),
new Dotenv({ silent: true }),
// graphql sources check process variable
new DefinePlugin({
process: JSON.stringify(true),
process: { browser: true, env: stringified },
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
}),
// See https://github.com/graphql/graphql-language-service/issues/111#issuecomment-306723400
Expand Down

1 comment on commit 3b6e1d0

@vercel
Copy link

@vercel vercel bot commented on 3b6e1d0 May 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.