Skip to content

Commit

Permalink
Merge pull request #4820 from owncloud/node-env
Browse files Browse the repository at this point in the history
set NODE_ENV based on rollup build type
  • Loading branch information
fschade committed Mar 17, 2021
2 parents 5a56117 + 9dee55b commit bf22ec3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-node-env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: NODE_ENV based on rollup mode

The NODE_ENV was set to production by default, now we use development if rollup is started in watch mode so that the vue devtools can be used.

https://github.com/owncloud/web/issues/4819
https://github.com/owncloud/web/pull/4820
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const plugins = [
exclude: 'node_modules/**'
}),
modify({
'process.env.NODE_ENV': JSON.stringify('production'),
'process.env.NODE_ENV': JSON.stringify(production ? 'production' : 'development'),
// todo: remove after pending PR is merged
// fix for 'assignment to undeclared variable dav' in davclient.js/lib/client.js 6:0
"if (typeof dav === 'undefined') { dav = {}; }": 'var dav = dav || {}',
Expand Down

0 comments on commit bf22ec3

Please sign in to comment.