@zohodesk/react-cli 1.1.24 → 1.1.25-exp.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -0
- package/lib/configs/webpack.prod.config.js +2 -2
- package/lib/loaderUtils/configsAssetsLoaders.js +1 -1
- package/lib/pluginUtils/getDevPlugins.js +9 -10
- package/lib/pluginUtils/getProdPlugins.js +9 -10
- package/lib/utils/getFileType.js +1 -1
- package/npm-shrinkwrap.json +15 -19871
- package/package.json +1 -1
package/README.md
CHANGED
@@ -63,7 +63,7 @@ const output = {
|
|
63
63
|
path: _path.default.resolve(appPath, outputFolder),
|
64
64
|
filename: enableChunkHash ? 'js/[name].[chunkhash:20]_.js' : 'js/[name]_.js',
|
65
65
|
chunkFilename: enableChunkHash ? 'js/[name].[chunkhash:20]_.js' : 'js/[name]_.js',
|
66
|
-
jsonpFunction:
|
66
|
+
jsonpFunction: `Jsonp${context}`,
|
67
67
|
sourceMapFilename: enableChunkHash ? 'js/[name].[chunkhash:20]_.js.map' : 'js/[name]_.js.map'
|
68
68
|
};
|
69
69
|
|
@@ -223,7 +223,7 @@ module.exports = {
|
|
223
223
|
}
|
224
224
|
}]
|
225
225
|
}, {
|
226
|
-
test: /\.ogg$/,
|
226
|
+
test: /\.ogg|\.mp3$/,
|
227
227
|
use: [{
|
228
228
|
loader: 'file-loader',
|
229
229
|
options: {
|
@@ -19,7 +19,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
19
19
|
const ImageExtRegex = /\.jpe?g$|\.gif$|\.png|\.webp$/;
|
20
20
|
const FontExtRegex = /\.woff2|\.woff$|\.ttf$|\.eot$/;
|
21
21
|
const SVGExtRegex = /\.svg$/;
|
22
|
-
const AudioExtRegex = /\.ogg$/;
|
22
|
+
const AudioExtRegex = /\.ogg|\.mp3$/;
|
23
23
|
const VidioExtRegex = /\.mp4|\.webm$/;
|
24
24
|
|
25
25
|
function createLoaderOptionQueryString(loaderName, nameTemplate, limit = 1000) {
|
@@ -162,16 +162,15 @@ const getDevPlugins = (options, publicPath) => {
|
|
162
162
|
pluginsArr.push(new _lodashWebpackPlugin.default({
|
163
163
|
collections: true,
|
164
164
|
shorthands: true
|
165
|
-
}));
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
});
|
165
|
+
})); // configHtmlWebpackPlugins(pluginsArr, {
|
166
|
+
// enableChunkHash: false,
|
167
|
+
// folder,
|
168
|
+
// minify: false,
|
169
|
+
// inject,
|
170
|
+
// crossorigin,
|
171
|
+
// hasEFC,
|
172
|
+
// customScriptLoadingStrategey,
|
173
|
+
// });
|
175
174
|
|
176
175
|
if (hasEFC) {
|
177
176
|
pluginsArr.push(new _plugins.EFCPlugin({
|
@@ -173,16 +173,15 @@ const getProdPlugins = (options, publicPath = '') => {
|
|
173
173
|
from: `${_path.default.join(process.cwd(), context, tpFolder)}/`,
|
174
174
|
to: `./${tpFolder}/`,
|
175
175
|
toType: 'dir'
|
176
|
-
}]));
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
});
|
176
|
+
}])); // configHtmlWebpackPlugins(pluginsArr, {
|
177
|
+
// enableChunkHash,
|
178
|
+
// folder,
|
179
|
+
// inject,
|
180
|
+
// minify: minifyHtmlOptions,
|
181
|
+
// customScriptLoadingStrategey,
|
182
|
+
// crossorigin,
|
183
|
+
// hasEFC
|
184
|
+
// });
|
186
185
|
|
187
186
|
if (hasEFC) {
|
188
187
|
pluginsArr.push(new _plugins.EFCPlugin({
|
package/lib/utils/getFileType.js
CHANGED