@abgov/nx-adsp 5.6.0 → 5.6.1
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/package.json
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
reducer as oidcReducer,
|
|
4
|
+
LOAD_USER_ERROR,
|
|
5
|
+
LOADING_USER,
|
|
6
|
+
USER_EXPIRED,
|
|
7
|
+
USER_EXPIRING,
|
|
8
|
+
USER_FOUND,
|
|
9
|
+
USER_LOADED,
|
|
10
|
+
USER_SIGNED_OUT,
|
|
11
|
+
} from 'redux-oidc';
|
|
3
12
|
import { START_FEATURE_KEY, startReducer } from './app/start.slice';
|
|
4
13
|
import { INTAKE_FEATURE_KEY, intakeReducer } from './app/intake.slice';
|
|
5
14
|
|
|
@@ -12,5 +21,20 @@ export const store = configureStore({
|
|
|
12
21
|
devTools: process.env.NODE_ENV !== 'production',
|
|
13
22
|
// Optional Redux store enhancers
|
|
14
23
|
enhancers: [],
|
|
24
|
+
middleware: (getDefault) =>
|
|
25
|
+
getDefault({
|
|
26
|
+
serializableCheck: {
|
|
27
|
+
ignoredActions: [
|
|
28
|
+
LOAD_USER_ERROR,
|
|
29
|
+
LOADING_USER,
|
|
30
|
+
USER_EXPIRED,
|
|
31
|
+
USER_EXPIRING,
|
|
32
|
+
USER_FOUND,
|
|
33
|
+
USER_LOADED,
|
|
34
|
+
USER_SIGNED_OUT,
|
|
35
|
+
],
|
|
36
|
+
ignoredPaths: ['user'],
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
15
39
|
});
|
|
16
40
|
export type AppDispatch = typeof store.dispatch;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const { composePlugins, withNx } = require('@nrwl/webpack');
|
|
2
|
+
const { withReact } = require('@nrwl/react');
|
|
3
|
+
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
4
|
+
|
|
5
|
+
// Nx plugins for webpack.
|
|
6
|
+
module.exports = composePlugins(withNx(), withReact(), (config) => {
|
|
7
|
+
// Update the webpack config as needed here.
|
|
8
|
+
// e.g. `config.plugins.push(new MyPlugin())`
|
|
9
|
+
config.entry['renew'] = ['./src/renew.ts'];
|
|
10
|
+
|
|
11
|
+
config.plugins.push(
|
|
12
|
+
new HtmlWebpackPlugin({
|
|
13
|
+
template: './src/renew.html',
|
|
14
|
+
chunks: ['renew'],
|
|
15
|
+
filename: 'renew.html',
|
|
16
|
+
})
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
return config;
|
|
20
|
+
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
2
|
-
|
|
3
|
-
module.exports = (configuration) => {
|
|
4
|
-
configuration.entry['renew'] = [
|
|
5
|
-
'./src/renew.ts'
|
|
6
|
-
]
|
|
7
|
-
|
|
8
|
-
configuration.plugins.push(
|
|
9
|
-
new HtmlWebpackPlugin({
|
|
10
|
-
template: './src/renew.html',
|
|
11
|
-
chunks: ['renew'],
|
|
12
|
-
filename: 'renew.html'
|
|
13
|
-
})
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
return configuration;
|
|
17
|
-
}
|