Skip to content

Commit e682c55

Browse files
committed
mobx and ui layout added
1 parent 82e9692 commit e682c55

19 files changed

+2152
-49
lines changed

reactjs/config-overrides.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const {
33
getLoader
44
} = require("react-app-rewired");
55
const rewireLess = require('react-app-rewire-less');
6+
const CopyWebpackPlugin = require('copy-webpack-plugin');
67

78
module.exports = function override(config, env) {
89
const tsLoader = getLoader(
@@ -30,5 +31,30 @@ module.exports = function override(config, env) {
3031
},
3132
})(config, env);
3233

34+
if (!config.plugins) {
35+
config.plugins = [];
36+
}
37+
38+
config.plugins.push(
39+
(process.env.NODE_ENV === 'production') ?
40+
new CopyWebpackPlugin([{
41+
from: 'node_modules/@aspnet/signalr/dist/browser/signalr.min.js'
42+
}, {
43+
from: 'node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr-client.js'
44+
}, {
45+
from: 'src/lib/abp.js'
46+
}]) :
47+
new CopyWebpackPlugin([{
48+
from: 'node_modules/@aspnet/signalr/dist/browser/signalr.min.js',
49+
to: 'dist'
50+
}, {
51+
from: 'node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr-client.js',
52+
to: 'dist'
53+
}, {
54+
from: 'src/lib/abp.js',
55+
to: 'dist'
56+
}])
57+
);
58+
3359
return config;
3460
}

0 commit comments

Comments
 (0)