You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/05/22 19:02:36 UTC
[incubator-annotator] 02/02: Set webpack mode from the command line
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 4d24725c6fce57eba1de06c7d1fd3ff55f4d4b06
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Wed May 22 13:39:40 2019 -0400
Set webpack mode from the command line
---
package.json | 2 +-
webpack.config.js | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 8cfb8cd..ae30baa 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,7 @@
"clean": "lerna exec -- rimraf esm lib",
"lint": "eslint . --ext js,mjs --fix --quiet",
"prepare": "lerna run prepare",
- "start": "webpack-dev-server --hot",
+ "start": "webpack-dev-server --hot --mode development",
"test": "cross-env BABEL_ENV=test nyc mocha packages/*/test/**/*.js",
"validate": "cross-env BABEL_ENV=test nyc mocha test/**/*.js"
},
diff --git a/webpack.config.js b/webpack.config.js
index ba72459..9f6ddbe 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -28,7 +28,6 @@ module.exports = {
],
},
devtool: 'inline-source-map',
- mode: 'development',
module: {
rules: [
{