@bigbinary/neeto-commons-frontend 2.0.32 → 2.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -65,6 +65,7 @@ Category
65
65
  (register browser subscription for push notifications)
66
66
  - [destroyBrowserSubscription](./docs/react/utils.md#destroybrowsersubscription)
67
67
  (destroy browser subscription for push notifications)
68
+ - [handleMetaClick](./docs/react/utils.md#handlemetaclick) (handle clicks to redirect to newtab)
68
69
 
69
70
  </td>
70
71
  <td style="vertical-align: top;">
@@ -185,6 +186,7 @@ them to read more:
185
186
  3. [Pure utility functions](./docs/pure/README.md)
186
187
  4. [Web utility functions](./docs/utils/README.md)
187
188
  5. [Default configurations](./docs/configs/README.md)
189
+ 5. [Cypress Utils](./docs/cypress/README.md)
188
190
 
189
191
  ## Other references
190
192
 
@@ -11,9 +11,13 @@ const rules = require("./rules");
11
11
  const dotEnvFileSuffix =
12
12
  process.env.NODE_ENV === "production" ? "" : `.${process.env.NODE_ENV}`;
13
13
 
14
+ let devtool = "source-map";
15
+ if (process.env.RAILS_ENV === "test") devtool = undefined;
16
+ else if (process.env.RAILS_ENV === "development") devtool = "eval";
17
+
14
18
  const commonOptions = {
15
19
  infrastructureLogging: { level: "warn" },
16
- devtool: "source-map",
20
+ devtool,
17
21
  resolve,
18
22
  module: { rules },
19
23
  plugins: [