@zohodesk/react-cli 1.1.23-exp.1 → 1.1.23-exp.2
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.
|
@@ -33,14 +33,13 @@ var _VariableConversionCollector = _interopRequireDefault(require("../plugins/Va
|
|
|
33
33
|
|
|
34
34
|
var _SelectorPlugin = _interopRequireDefault(require("../plugins/SelectorPlugin"));
|
|
35
35
|
|
|
36
|
-
var _configHtmlWebpackPlugins = require("./configHtmlWebpackPlugins");
|
|
37
|
-
|
|
38
36
|
var _EfcResourceCleanupPlugin = _interopRequireDefault(require("../plugins/EfcResourceCleanupPlugin"));
|
|
39
37
|
|
|
40
38
|
var _EventsHandlingPlugin = require("../plugins/EventsHandlingPlugin");
|
|
41
39
|
|
|
42
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
41
|
|
|
42
|
+
// import { configHtmlWebpackPlugins } from './configHtmlWebpackPlugins';
|
|
44
43
|
// import { windowsModification } from '../loaderUtils/windowsModification';
|
|
45
44
|
const getDevPlugins = (options, publicPath) => {
|
|
46
45
|
const {
|
|
@@ -35,14 +35,13 @@ var _CustomAttributePlugin = require("../plugins/CustomAttributePlugin");
|
|
|
35
35
|
|
|
36
36
|
var _RtlCssPlugin = require("../plugins/RtlSplitPlugin/RtlCssPlugin");
|
|
37
37
|
|
|
38
|
-
var _configHtmlWebpackPlugins = require("./configHtmlWebpackPlugins");
|
|
39
|
-
|
|
40
38
|
var _StatsPlugin = _interopRequireDefault(require("../plugins/StatsPlugin"));
|
|
41
39
|
|
|
42
40
|
var _EfcResourceCleanupPlugin = _interopRequireDefault(require("../plugins/EfcResourceCleanupPlugin"));
|
|
43
41
|
|
|
44
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
43
|
|
|
44
|
+
// import { configHtmlWebpackPlugins } from './configHtmlWebpackPlugins';
|
|
46
45
|
// eslint-disable-next-line no-unused-vars
|
|
47
46
|
const getProdPlugins = (options, publicPath = '') => {
|
|
48
47
|
let {
|
|
@@ -173,16 +172,15 @@ const getProdPlugins = (options, publicPath = '') => {
|
|
|
173
172
|
from: `${_path.default.join(process.cwd(), context, tpFolder)}/`,
|
|
174
173
|
to: `./${tpFolder}/`,
|
|
175
174
|
toType: 'dir'
|
|
176
|
-
}]));
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
});
|
|
175
|
+
}])); // configHtmlWebpackPlugins(pluginsArr, {
|
|
176
|
+
// enableChunkHash,
|
|
177
|
+
// folder,
|
|
178
|
+
// inject,
|
|
179
|
+
// minify: minifyHtmlOptions,
|
|
180
|
+
// customScriptLoadingStrategey,
|
|
181
|
+
// crossorigin,
|
|
182
|
+
// hasEFC
|
|
183
|
+
// });
|
|
186
184
|
|
|
187
185
|
if (hasEFC) {
|
|
188
186
|
pluginsArr.push(new _plugins.EFCPlugin({
|