@zohodesk/react-cli 1.1.19-exp.8 → 1.1.19-exp.9
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/configs/webpack.dev.config.js +4 -9
- package/lib/configs/webpack.prod.config.js +3 -7
- package/lib/jest/run.js +0 -2
- package/lib/schemas/index.js +1 -1
- package/npm-shrinkwrap.json +368 -1344
- package/package.json +3 -4
@@ -52,12 +52,11 @@ const {
|
|
52
52
|
const appPath = process.cwd();
|
53
53
|
const contextURL = disableContextURL ? '' : context;
|
54
54
|
const serverUrl = (0, _utils.getServerURL)(server, 'https');
|
55
|
-
console.log(`${[serverUrl, contextURL].filter(a => a).join('/')}`, 'contextURL');
|
56
55
|
const output = {
|
57
56
|
path: _path.default.join(appPath, outputFolder),
|
58
57
|
filename: 'js/[name].js',
|
59
58
|
chunkFilename: 'js/[name].js',
|
60
|
-
publicPath: `${[serverUrl, contextURL].filter(a => a).join('/')}
|
59
|
+
publicPath: `${[serverUrl, contextURL].filter(a => a).join('/')}/`,
|
61
60
|
jsonpFunction: `${context}Jsonp`
|
62
61
|
};
|
63
62
|
const nameTemplate = (0, _configsAssetsLoaders.createNameTemplate)(enableChunkHash);
|
@@ -80,13 +79,9 @@ module.exports = {
|
|
80
79
|
optimization: {
|
81
80
|
splitChunks: _common.splitChunks,
|
82
81
|
moduleIds: 'named',
|
83
|
-
runtimeChunk:
|
84
|
-
|
85
|
-
|
86
|
-
// ? `./runtime-${entrypoint.name}`
|
87
|
-
// : `./runtime~${entrypoint.name}`
|
88
|
-
// }
|
89
|
-
|
82
|
+
runtimeChunk: {
|
83
|
+
name: entrypoint => changeRuntimeChunkChar ? `./runtime-${entrypoint.name}` : `./runtime~${entrypoint.name}`
|
84
|
+
}
|
90
85
|
},
|
91
86
|
plugins: (0, _pluginUtils.getDevPlugins)(options, output.publicPath),
|
92
87
|
module: {
|
@@ -87,13 +87,9 @@ module.exports = {
|
|
87
87
|
output,
|
88
88
|
optimization: {
|
89
89
|
splitChunks: _common.splitChunks,
|
90
|
-
runtimeChunk:
|
91
|
-
|
92
|
-
|
93
|
-
// changeRuntimeChunkChar
|
94
|
-
// ? `./runtime-${entrypoint.name}`
|
95
|
-
// : `./runtime~${entrypoint.name}`
|
96
|
-
// },
|
90
|
+
runtimeChunk: {
|
91
|
+
name: entrypoint => changeRuntimeChunkChar ? `./runtime-${entrypoint.name}` : `./runtime~${entrypoint.name}`
|
92
|
+
},
|
97
93
|
concatenateModules: true,
|
98
94
|
minimize: true,
|
99
95
|
// by default if minimize: true in webpack minimize then webpack automaticaly add TerserPlugin,
|
package/lib/jest/run.js
CHANGED
@@ -30,8 +30,6 @@ let argv = process.argv.slice(2);
|
|
30
30
|
|
31
31
|
let config = require('../configs/jest.config');
|
32
32
|
|
33
|
-
console.log(JSON.stringify(config(null, true)), 'hello');
|
34
|
-
|
35
33
|
if (isCommitCoverage) {
|
36
34
|
(0, _coverageCollector.default)(srcBranch, targetBranch, serviceName, impactServerDomain).then((res = {}) => {
|
37
35
|
if (res.STATUS) {
|