@zohodesk/react-cli 1.1.23-exp.2 → 1.1.23-exp.4
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.
@@ -137,7 +137,6 @@ function pitch(request) {
|
|
137
137
|
workerUrl: __webpack_public_path__ + ${JSON.stringify(entry)}, \n
|
138
138
|
getInstance: ${workerCode} \n
|
139
139
|
};\n
|
140
|
-
workerObj.getInstance();
|
141
140
|
${options.esModule ? 'export default' : 'module.exports ='} workerObj;
|
142
141
|
`); // return cb(
|
143
142
|
// null,
|
@@ -33,13 +33,14 @@ var _VariableConversionCollector = _interopRequireDefault(require("../plugins/Va
|
|
33
33
|
|
34
34
|
var _SelectorPlugin = _interopRequireDefault(require("../plugins/SelectorPlugin"));
|
35
35
|
|
36
|
+
var _configHtmlWebpackPlugins = require("./configHtmlWebpackPlugins");
|
37
|
+
|
36
38
|
var _EfcResourceCleanupPlugin = _interopRequireDefault(require("../plugins/EfcResourceCleanupPlugin"));
|
37
39
|
|
38
40
|
var _EventsHandlingPlugin = require("../plugins/EventsHandlingPlugin");
|
39
41
|
|
40
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
41
43
|
|
42
|
-
// import { configHtmlWebpackPlugins } from './configHtmlWebpackPlugins';
|
43
44
|
// import { windowsModification } from '../loaderUtils/windowsModification';
|
44
45
|
const getDevPlugins = (options, publicPath) => {
|
45
46
|
const {
|
@@ -161,15 +162,16 @@ const getDevPlugins = (options, publicPath) => {
|
|
161
162
|
pluginsArr.push(new _lodashWebpackPlugin.default({
|
162
163
|
collections: true,
|
163
164
|
shorthands: true
|
164
|
-
}));
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
165
|
+
}));
|
166
|
+
(0, _configHtmlWebpackPlugins.configHtmlWebpackPlugins)(pluginsArr, {
|
167
|
+
enableChunkHash: false,
|
168
|
+
folder,
|
169
|
+
minify: false,
|
170
|
+
inject,
|
171
|
+
crossorigin,
|
172
|
+
hasEFC,
|
173
|
+
customScriptLoadingStrategey
|
174
|
+
});
|
173
175
|
|
174
176
|
if (hasEFC) {
|
175
177
|
pluginsArr.push(new _plugins.EFCPlugin({
|
@@ -35,13 +35,14 @@ var _CustomAttributePlugin = require("../plugins/CustomAttributePlugin");
|
|
35
35
|
|
36
36
|
var _RtlCssPlugin = require("../plugins/RtlSplitPlugin/RtlCssPlugin");
|
37
37
|
|
38
|
+
var _configHtmlWebpackPlugins = require("./configHtmlWebpackPlugins");
|
39
|
+
|
38
40
|
var _StatsPlugin = _interopRequireDefault(require("../plugins/StatsPlugin"));
|
39
41
|
|
40
42
|
var _EfcResourceCleanupPlugin = _interopRequireDefault(require("../plugins/EfcResourceCleanupPlugin"));
|
41
43
|
|
42
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
43
45
|
|
44
|
-
// import { configHtmlWebpackPlugins } from './configHtmlWebpackPlugins';
|
45
46
|
// eslint-disable-next-line no-unused-vars
|
46
47
|
const getProdPlugins = (options, publicPath = '') => {
|
47
48
|
let {
|
@@ -172,15 +173,16 @@ const getProdPlugins = (options, publicPath = '') => {
|
|
172
173
|
from: `${_path.default.join(process.cwd(), context, tpFolder)}/`,
|
173
174
|
to: `./${tpFolder}/`,
|
174
175
|
toType: 'dir'
|
175
|
-
}]));
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
176
|
+
}]));
|
177
|
+
(0, _configHtmlWebpackPlugins.configHtmlWebpackPlugins)(pluginsArr, {
|
178
|
+
enableChunkHash,
|
179
|
+
folder,
|
180
|
+
inject,
|
181
|
+
minify: minifyHtmlOptions,
|
182
|
+
customScriptLoadingStrategey,
|
183
|
+
crossorigin,
|
184
|
+
hasEFC
|
185
|
+
});
|
184
186
|
|
185
187
|
if (hasEFC) {
|
186
188
|
pluginsArr.push(new _plugins.EFCPlugin({
|