@zohodesk/client_build_tool 0.0.6-exp.26 → 0.0.6-exp.28
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/README.md +0 -74
- package/README_backup.md +0 -74
- package/cli.js +1 -1
- package/lib/schemas/defaultConfigValues.js +3 -3
- package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nLoadingRuntimeModule.js +1 -1
- package/lib/shared/bundler/webpack/custom_plugins/InitialHtmlPlugin.js +4 -0
- package/lib/shared/bundler/webpack/custom_plugins/ResourceHintsPlugin.js +1 -0
- package/lib/shared/bundler/webpack/loaderConfigs/babelLoaderConfig.js +1 -1
- package/lib/shared/bundler/webpack/loaderConfigs/checkIsPatternsMatchFilename.js +8 -10
- package/lib/shared/bundler/webpack/pluginConfigs/configMiniCSSExtractPlugin.js +2 -1
- package/lib/shared/bundler/webpack/splitChunksConfig.js +0 -1
- package/lib/shared/bundler/webpack/webpackConfig.js +1 -3
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,80 +86,6 @@ For more [Details](ConfigurationDocumentation.md)
|
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
**Feature:-**
|
|
90
|
-
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
|
91
|
-
- to use externals, we use the following pattern in `app > externals` :
|
|
92
|
-
|
|
93
|
-
For example
|
|
94
|
-
```
|
|
95
|
-
externals: {
|
|
96
|
-
<key> : <value>
|
|
97
|
-
}
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## v0.0.6 (4-09-2023)
|
|
101
|
-
|
|
102
|
-
**Feature:-**
|
|
103
|
-
- Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
|
|
104
|
-
- Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
|
|
105
|
-
- added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
|
|
106
|
-
only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
|
|
107
|
-
- added support for glob pattern for custom chunks split logic.
|
|
108
|
-
- added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
|
|
109
|
-
|
|
110
|
-
**Change:-**
|
|
111
|
-
- i18n name not generated issue fix.
|
|
112
|
-
- public path not correctly set issue fix.
|
|
113
|
-
- changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
|
|
114
|
-
## v0.0.5 (6-08-2023)
|
|
115
|
-
|
|
116
|
-
**Changes:--**
|
|
117
|
-
- Typo fix in i18nRuntimeDealerPlugin.js
|
|
118
|
-
- fixing some bugs in resolvers.js file
|
|
119
|
-
|
|
120
|
-
## v0.0.3 (1-08-2023)
|
|
121
|
-
|
|
122
|
-
**Changes:--**
|
|
123
|
-
- `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
|
|
124
|
-
- unwanted files deleted from build
|
|
125
|
-
|
|
126
|
-
**Issue Fix:--**
|
|
127
|
-
- The issue with the source map not being created in the build has been fixed."
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
## v0.0.2 (28-04-2023)
|
|
131
|
-
|
|
132
|
-
**Features:-**
|
|
133
|
-
|
|
134
|
-
- `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
|
|
135
|
-
- `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
|
|
136
|
-
- `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
|
|
137
|
-
- `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
|
|
138
|
-
- `enableChunkHash` renamed as `enableFileNameHashing`
|
|
139
|
-
|
|
140
|
-
- `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
|
|
141
|
-
- `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
|
|
142
|
-
- `removeAttribute` option changes as `babelCustomizations.removeAttribute`
|
|
143
|
-
- `removePropTypes` support for remove the prop types package in the output build.
|
|
144
|
-
- `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
|
|
145
|
-
- `manifestJson` default value set as false.
|
|
146
|
-
- `customAttributes` support for add attributes to html, link , script tag in the output build.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
## v0.0.1 (18-04-2023)
|
|
150
|
-
|
|
151
|
-
First Release
|
|
152
|
-
**Features:-**
|
|
153
|
-
|
|
154
|
-
- 'start' command to run react app
|
|
155
|
-
- 'build' command to create build for react app
|
|
156
|
-
- 'build:lib' command to create lib for react library
|
|
157
|
-
- 'build:es' command to create es for react library
|
|
158
|
-
- 'templates' command to create es for react library
|
|
159
|
-
# Changelog and Release Notes
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
89
|
**Feature:-**
|
|
164
90
|
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
|
165
91
|
- to use externals, we use the following pattern in `app > externals` :
|
package/README_backup.md
CHANGED
|
@@ -82,77 +82,3 @@ The following commands are available options for the `cbt` (Client Build Tool) C
|
|
|
82
82
|
These commands provide flexibility and control over your client-side build process, allowing you to start the development server, build your application, transpile libraries, create templates, run a mock API server, and more.
|
|
83
83
|
|
|
84
84
|
For more [Details](ConfigurationDocumentation.md)
|
|
85
|
-
# Changelog and Release Notes
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
**Feature:-**
|
|
90
|
-
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
|
91
|
-
- to use externals, we use the following pattern in `app > externals` :
|
|
92
|
-
|
|
93
|
-
For example
|
|
94
|
-
```
|
|
95
|
-
externals: {
|
|
96
|
-
<key> : <value>
|
|
97
|
-
}
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## v0.0.6 (4-09-2023)
|
|
101
|
-
|
|
102
|
-
**Feature:-**
|
|
103
|
-
- Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
|
|
104
|
-
- Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
|
|
105
|
-
- added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
|
|
106
|
-
only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
|
|
107
|
-
- added support for glob pattern for custom chunks split logic.
|
|
108
|
-
- added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
|
|
109
|
-
|
|
110
|
-
**Change:-**
|
|
111
|
-
- i18n name not generated issue fix.
|
|
112
|
-
- public path not correctly set issue fix.
|
|
113
|
-
- changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
|
|
114
|
-
## v0.0.5 (6-08-2023)
|
|
115
|
-
|
|
116
|
-
**Changes:--**
|
|
117
|
-
- Typo fix in i18nRuntimeDealerPlugin.js
|
|
118
|
-
- fixing some bugs in resolvers.js file
|
|
119
|
-
|
|
120
|
-
## v0.0.3 (1-08-2023)
|
|
121
|
-
|
|
122
|
-
**Changes:--**
|
|
123
|
-
- `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
|
|
124
|
-
- unwanted files deleted from build
|
|
125
|
-
|
|
126
|
-
**Issue Fix:--**
|
|
127
|
-
- The issue with the source map not being created in the build has been fixed."
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
## v0.0.2 (28-04-2023)
|
|
131
|
-
|
|
132
|
-
**Features:-**
|
|
133
|
-
|
|
134
|
-
- `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
|
|
135
|
-
- `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
|
|
136
|
-
- `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
|
|
137
|
-
- `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
|
|
138
|
-
- `enableChunkHash` renamed as `enableFileNameHashing`
|
|
139
|
-
|
|
140
|
-
- `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
|
|
141
|
-
- `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
|
|
142
|
-
- `removeAttribute` option changes as `babelCustomizations.removeAttribute`
|
|
143
|
-
- `removePropTypes` support for remove the prop types package in the output build.
|
|
144
|
-
- `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
|
|
145
|
-
- `manifestJson` default value set as false.
|
|
146
|
-
- `customAttributes` support for add attributes to html, link , script tag in the output build.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
## v0.0.1 (18-04-2023)
|
|
150
|
-
|
|
151
|
-
First Release
|
|
152
|
-
**Features:-**
|
|
153
|
-
|
|
154
|
-
- 'start' command to run react app
|
|
155
|
-
- 'build' command to create build for react app
|
|
156
|
-
- 'build:lib' command to create lib for react library
|
|
157
|
-
- 'build:es' command to create es for react library
|
|
158
|
-
- 'templates' command to create es for react library
|
package/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ var _default = {
|
|
|
13
13
|
value: 'app',
|
|
14
14
|
cli: 'context'
|
|
15
15
|
},
|
|
16
|
-
devtool: '
|
|
16
|
+
devtool: 'source-map',
|
|
17
17
|
statsLogConfig: null,
|
|
18
18
|
stats: {
|
|
19
19
|
enable: {
|
|
@@ -228,10 +228,9 @@ var _default = {
|
|
|
228
228
|
}
|
|
229
229
|
},
|
|
230
230
|
createSeparateSMap: {
|
|
231
|
-
value:
|
|
231
|
+
value: false,
|
|
232
232
|
cli: 'enable_smap'
|
|
233
233
|
},
|
|
234
|
-
nameTemplateCustomization: null,
|
|
235
234
|
babelCustomizations: {
|
|
236
235
|
browserList: null,
|
|
237
236
|
// NOTE: need to consider
|
|
@@ -292,6 +291,7 @@ var _default = {
|
|
|
292
291
|
allowPrefetchingMultipleChunks: false
|
|
293
292
|
},
|
|
294
293
|
devModeContentHashAllowedTypes: null,
|
|
294
|
+
nameTemplateCustomization: null,
|
|
295
295
|
devLikeHash: {
|
|
296
296
|
value: false,
|
|
297
297
|
cli: 'dev_like_hash'
|
package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nLoadingRuntimeModule.js
CHANGED
|
@@ -65,7 +65,7 @@ function getI18nLoadingRuntimeModule({
|
|
|
65
65
|
return _webpack.Template.asString([`${prefixFunc(i18nChunks)}`, `var createI18nScriptTag = ${runtimeTemplate.basicFunction('chunkId, fullsrc, resolve, reject', ['var scriptTag = document.createElement("script");', attributes ? _webpack.Template.asString(Object.entries(attributes).map(entry => {
|
|
66
66
|
const [key, value] = entry;
|
|
67
67
|
return `scriptTag.setAttribute(${JSON.stringify(key)}, ${JSON.stringify(value)});`;
|
|
68
|
-
})) : '', scriptType ? `scriptTag.type = ${JSON.stringify(scriptType)};` : '', `var onScriptComplete = ${runtimeTemplate.basicFunction('event', ['// avoid mem leaks.', 'scriptTag.onerror = scriptTag.onload = null;', 'if (event.type === \'load\') {', _webpack.Template.indent(['resolve();']), '} else {', _webpack.Template.indent(['var errorType = event && (event.type === \'load\' ? \'missing\' : event.type);', 'var realSrc = event && event.target && event.target.src || fullsrc;', 'var err = new Error("Loading I18N chunk " + chunkId + " failed.\\n(" + realSrc + ")");', 'err.code = "I18N_CHUNK_LOAD_FAILED";', 'err.type = errorType;', 'err.request = realSrc;', 'scriptTag.parentNode.removeChild(scriptTag)', 'reject(err);']), '}'])}`, 'scriptTag.onerror = scriptTag.onload = onScriptComplete;', 'scriptTag.src = fullsrc;', crossOriginLoading ? _webpack.Template.asString(['if (scriptTag.src.indexOf(window.location.origin + \'/\') !== 0) {', _webpack.Template.indent(`scriptTag.crossOrigin = ${JSON.stringify(crossOriginLoading)};`), '}']) : '', insertRoot && insertPlace || _webpack.Template.asString(['document.head.appendChild(scriptTag);']), 'return scriptTag;'])};`, `var findI18nScriptTag = ${runtimeTemplate.basicFunction('src, fullsrc', ['var existingScriptTags = document.getElementsByTagName("script");', 'for(var i = 0; i < existingScriptTags.length; i++) {', _webpack.Template.indent(['var tag = existingScriptTags[i];', 'var dataSrc = tag.getAttribute("data-src") || tag.getAttribute("src");', 'if((dataSrc === src || dataSrc === fullsrc)) return tag;']), '}', 'var existingStyleTags = document.getElementsByTagName("style");', 'for(var i = 0; i < existingStyleTags.length; i++) {', _webpack.Template.indent(['var tag = existingStyleTags[i];', 'var dataSrc = tag.getAttribute("data-src");', 'if(dataSrc === src || dataSrc === fullsrc) return tag;']), '}'])};`, `var loadI18nScriptTag = ${runtimeTemplate.basicFunction('chunkId', `return new Promise(${runtimeTemplate.basicFunction('resolve, reject', [`var src = ${_webpack.RuntimeGlobals.require}.miniI18nF(chunkId);`, `var fullsrc = ${_webpack.RuntimeGlobals.publicPath} + src;`, 'if(findI18nScriptTag(src, fullsrc)) return resolve();', 'createI18nScriptTag(chunkId, fullsrc, resolve, reject);'])});`)}`, '// object to store loaded I18N chunks', 'var installedI18nChunks = {', _webpack.Template.indent(
|
|
68
|
+
})) : '', '__webpack_require__.nc && scriptTag.setAttribute("nonce", __webpack_require__.nc)', scriptType ? `scriptTag.type = ${JSON.stringify(scriptType)};` : '', `var onScriptComplete = ${runtimeTemplate.basicFunction('event', ['// avoid mem leaks.', 'scriptTag.onerror = scriptTag.onload = null;', 'if (event.type === \'load\') {', _webpack.Template.indent(['resolve();']), '} else {', _webpack.Template.indent(['var errorType = event && (event.type === \'load\' ? \'missing\' : event.type);', 'var realSrc = event && event.target && event.target.src || fullsrc;', 'var err = new Error("Loading I18N chunk " + chunkId + " failed.\\n(" + realSrc + ")");', 'err.code = "I18N_CHUNK_LOAD_FAILED";', 'err.type = errorType;', 'err.request = realSrc;', 'scriptTag.parentNode.removeChild(scriptTag)', 'reject(err);']), '}'])}`, 'scriptTag.onerror = scriptTag.onload = onScriptComplete;', 'scriptTag.src = fullsrc;', crossOriginLoading ? _webpack.Template.asString(['if (scriptTag.src.indexOf(window.location.origin + \'/\') !== 0) {', _webpack.Template.indent(`scriptTag.crossOrigin = ${JSON.stringify(crossOriginLoading)};`), '}']) : '', insertRoot && insertPlace || _webpack.Template.asString(['document.head.appendChild(scriptTag);']), 'return scriptTag;'])};`, `var findI18nScriptTag = ${runtimeTemplate.basicFunction('src, fullsrc', ['var existingScriptTags = document.getElementsByTagName("script");', 'for(var i = 0; i < existingScriptTags.length; i++) {', _webpack.Template.indent(['var tag = existingScriptTags[i];', 'var dataSrc = tag.getAttribute("data-src") || tag.getAttribute("src");', 'if((dataSrc === src || dataSrc === fullsrc)) return tag;']), '}', 'var existingStyleTags = document.getElementsByTagName("style");', 'for(var i = 0; i < existingStyleTags.length; i++) {', _webpack.Template.indent(['var tag = existingStyleTags[i];', 'var dataSrc = tag.getAttribute("data-src");', 'if(dataSrc === src || dataSrc === fullsrc) return tag;']), '}'])};`, `var loadI18nScriptTag = ${runtimeTemplate.basicFunction('chunkId', `return new Promise(${runtimeTemplate.basicFunction('resolve, reject', [`var src = ${_webpack.RuntimeGlobals.require}.miniI18nF(chunkId);`, `var fullsrc = ${_webpack.RuntimeGlobals.publicPath} + src;`, 'if(findI18nScriptTag(src, fullsrc)) return resolve();', 'createI18nScriptTag(chunkId, fullsrc, resolve, reject);'])});`)}`, '// object to store loaded I18N chunks', 'var installedI18nChunks = {', _webpack.Template.indent(
|
|
69
69
|
/** @type {string[]} */
|
|
70
70
|
chunk.ids.map(id => `${JSON.stringify(id)}: 0`).join(',\n')), '};', '', `${_webpack.RuntimeGlobals.ensureChunkHandlers}.miniI18n = ${runtimeTemplate.basicFunction('chunkId, promises', [`var i18nChunks = ${JSON.stringify(chunkMap)};`, 'if(installedI18nChunks[chunkId]) promises.push(installedI18nChunks[chunkId]);', 'else if(installedI18nChunks[chunkId] !== 0 && i18nChunks[chunkId]) {', _webpack.Template.indent([`promises.push(installedI18nChunks[chunkId] = loadI18nScriptTag(chunkId).then(${runtimeTemplate.basicFunction('', 'installedI18nChunks[chunkId] = 0;')}, ${runtimeTemplate.basicFunction('e', ['delete installedI18nChunks[chunkId];', 'throw e;'])}));`]), '}'])};`, '']);
|
|
71
71
|
}
|
|
@@ -117,6 +117,7 @@ class ResourceHintsRuntimePlugin extends _webpack.RuntimeModule {
|
|
|
117
117
|
let link = document.createElement("link");
|
|
118
118
|
link.href = href;
|
|
119
119
|
link.rel = rel;
|
|
120
|
+
__webpack_require__.nc && link.setAttribute("nonce", __webpack_require__.nc)
|
|
120
121
|
if(href.endsWith(".css")) {
|
|
121
122
|
link.as="style";
|
|
122
123
|
} else if (href.endsWith(".js")) {
|
|
@@ -23,8 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
23
23
|
|
|
24
24
|
@return {Boolean} : true or false
|
|
25
25
|
*/
|
|
26
|
-
function checkIsPatternsMatchFilename(patterns, filename
|
|
27
|
-
// console.log(filename, patterns);
|
|
26
|
+
function checkIsPatternsMatchFilename(patterns, filename) {
|
|
28
27
|
if (!filename) {
|
|
29
28
|
return false;
|
|
30
29
|
}
|
|
@@ -35,22 +34,21 @@ function checkIsPatternsMatchFilename(patterns, filename = '') {
|
|
|
35
34
|
|
|
36
35
|
if (typeof patterns === 'function') {
|
|
37
36
|
return patterns(filename);
|
|
38
|
-
}
|
|
39
|
-
// // eslint-disable-next-line no-param-reassign
|
|
40
|
-
// patterns = [patterns];
|
|
41
|
-
// }
|
|
37
|
+
}
|
|
42
38
|
|
|
39
|
+
if (typeof patterns === 'string') {
|
|
40
|
+
// eslint-disable-next-line no-param-reassign
|
|
41
|
+
patterns = [patterns];
|
|
42
|
+
}
|
|
43
43
|
|
|
44
44
|
if (Array.isArray(patterns)) {
|
|
45
45
|
return patterns.length ? (0, _ignore.default)({
|
|
46
46
|
allowRelativePaths: true
|
|
47
47
|
}).add(patterns).ignores(filename) : true;
|
|
48
|
-
} //
|
|
49
|
-
// eslint-disable-next-line no-new
|
|
48
|
+
} // eslint-disable-next-line no-throw-literal
|
|
50
49
|
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
// throw `UnKnown pattern Error ${JSON.stringify(patterns)}`;
|
|
51
|
+
throw `UnKnown pattern Error ${JSON.stringify(patterns)}`;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
function modifyAsExclude(patterns) {
|
|
@@ -15,7 +15,8 @@ function configMiniCSSExtractPlugin(options) {
|
|
|
15
15
|
const {
|
|
16
16
|
enableRTLSplit
|
|
17
17
|
} = options.css.plugins.rtlSplit;
|
|
18
|
-
const cssLTRFileNameTempalte = enableRTLSplit ? (0, _nameTemplates.nameTemplates)('cssdir', options) : (0, _nameTemplates.nameTemplates)('css', options);
|
|
18
|
+
const cssLTRFileNameTempalte = enableRTLSplit ? (0, _nameTemplates.nameTemplates)('cssdir', options) : (0, _nameTemplates.nameTemplates)('css', options); // eslint-disable-next-line no-undef
|
|
19
|
+
|
|
19
20
|
return new _miniCssExtractPlugin.default({
|
|
20
21
|
filename: cssLTRFileNameTempalte,
|
|
21
22
|
chunkFilename: cssLTRFileNameTempalte
|
|
@@ -51,7 +51,6 @@ function splitChunksConfig(options) {
|
|
|
51
51
|
const cacheGroupName = cacheGroupObj.cacheGroupName || cacheGroupObj.name; // eslint-disable-next-line no-use-before-define
|
|
52
52
|
|
|
53
53
|
const obj = getCacheGroup(cacheGroupObj, index);
|
|
54
|
-
obj.chunks = 'all';
|
|
55
54
|
customChunksConfig[cacheGroupName] = obj;
|
|
56
55
|
});
|
|
57
56
|
const splitChunksConfig = {
|
|
@@ -37,14 +37,12 @@ var _externals = require("./externals");
|
|
|
37
37
|
|
|
38
38
|
var _configCustomLoaders = require("./configCustomLoaders");
|
|
39
39
|
|
|
40
|
-
const source = 'eval-source-map';
|
|
41
|
-
|
|
42
40
|
function webpackConfigCreator(options) {
|
|
43
41
|
return {
|
|
44
42
|
entry: (0, _entryConfig.entryConfig)(options),
|
|
45
43
|
mode: (0, _modeUtils.getWebpackMode)(options),
|
|
46
44
|
output: (0, _outputConfig.outputConfig)(options),
|
|
47
|
-
devtool:
|
|
45
|
+
devtool: (0, _devtoolConfig.devtoolConfig)(options),
|
|
48
46
|
stats: (0, _statsConfig.statsConfig)(options),
|
|
49
47
|
optimization: (0, _optimizationConfig.optimizationConfig)(options),
|
|
50
48
|
module: {
|
package/npm-shrinkwrap.json
CHANGED