Rename NODE_ENV to WEBPACK_BUNDLE (#18087)
NODE_ENV interferes with other tools (e.g. `yarn` won't pull devDependencies). Since what we need is only a flag indicating Webpack to bundle for production vs developement, invent our own env. This also solves the mystery of unable to call `yarn build` in the build script `bin/build-mb/src/build.clj`.
Showing
- Dockerfile 1 addition, 1 deletionDockerfile
- bin/build-mb/src/build.clj 5 additions, 15 deletionsbin/build-mb/src/build.clj
- frontend/src/metabase/env.js 1 addition, 1 deletionfrontend/src/metabase/env.js
- package.json 1 addition, 1 deletionpackage.json
- webpack.config.js 5 additions, 5 deletionswebpack.config.js
Loading
Please register or sign in to comment