Skip to content
Snippets Groups Projects
Commit ceeca6033268 authored by Frank Bessou's avatar Frank Bessou :spider_web:
Browse files

refactor(webpack): rename argument of exported function

parent 36d075346b34
No related branches found
No related tags found
1 merge request!1Many little improvements
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -54,9 +54,9 @@
//------------------------------------------------------------------------------
module.exports = function (_, webpackEnv) {
const isDevelopment = webpackEnv.mode === "development";
const isProduction = webpackEnv.mode === "production";
module.exports = function (_, argv) {
const isDevelopment = argv.mode === "development";
const isProduction = argv.mode === "production";
const port = process.env.PORT || 8080;
const getStyleLoaders = () => [
......@@ -206,7 +206,7 @@
isDevelopment && new CheckPortPlugin(port),
isProduction && new BuildFolderWiper(buildDir),
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify(webpackEnv.mode),
"process.env.NODE_ENV": JSON.stringify(argv.mode),
}),
new webpack.EnvironmentPlugin([
// Pass all public env variables here
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment