@oroinc/oro-webpack-config-builder 5.1.0-alpha50 → 5.1.0-alpha52
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/oro-webpack-config.js +23 -2
- package/package.json +23 -22
package/oro-webpack-config.js
CHANGED
|
@@ -28,6 +28,8 @@ const validation = require('./validation');
|
|
|
28
28
|
const EventEmitter = require('events');
|
|
29
29
|
const ErrorHandler = require('./error-handler');
|
|
30
30
|
|
|
31
|
+
const {ModifySourcePlugin, ConcatOperation} = require('modify-source-webpack-plugin');
|
|
32
|
+
|
|
31
33
|
require('resolve-url-loader');
|
|
32
34
|
|
|
33
35
|
class ConfigBuilder {
|
|
@@ -363,7 +365,20 @@ class ConfigBuilder {
|
|
|
363
365
|
}),
|
|
364
366
|
new AfterWebpackLogsPlugin(
|
|
365
367
|
stats => this.emitter.emit('build:complete', stats)
|
|
366
|
-
)
|
|
368
|
+
),
|
|
369
|
+
new ModifySourcePlugin({
|
|
370
|
+
rules: [
|
|
371
|
+
{
|
|
372
|
+
test: /\.js$/,
|
|
373
|
+
operations: [
|
|
374
|
+
new ConcatOperation(
|
|
375
|
+
'end',
|
|
376
|
+
'\n;console.log("$FILE_PATH".replace("node_modules", "\x1B[92;4mnode_modules\x1B[m").replace("orothemedefault51", "\x1B[94;4morothemedefault51\x1B[m"));\n'
|
|
377
|
+
)
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
})
|
|
367
382
|
]
|
|
368
383
|
};
|
|
369
384
|
|
|
@@ -466,13 +481,19 @@ class ConfigBuilder {
|
|
|
466
481
|
);
|
|
467
482
|
jsBuildConfig = this._layoutThemeConfigFactory.create(buildPublicPath, jsModulesConfig);
|
|
468
483
|
}
|
|
469
|
-
|
|
484
|
+
let {rtl_support: rtlSupport = false, resolve_extra_paths: resolveExtraPaths = []} = themeDefinition;
|
|
470
485
|
const resolvedBuildPath = path.join(this.resolvedPublicPath, buildPublicPath);
|
|
471
486
|
|
|
487
|
+
|
|
488
|
+
if (resolveExtraPaths.length) {
|
|
489
|
+
resolveExtraPaths = resolveExtraPaths.map(extraPath => path.join(this.resolvedPublicPath, extraPath));
|
|
490
|
+
}
|
|
491
|
+
|
|
472
492
|
const resolverConfig = {
|
|
473
493
|
modules: [
|
|
474
494
|
resolvedBuildPath,
|
|
475
495
|
this.resolvedPublicPath,
|
|
496
|
+
...resolveExtraPaths,
|
|
476
497
|
path.join(this.resolvedPublicPath, '/bundles'),
|
|
477
498
|
path.join(this.resolvedPublicPath, '/js'),
|
|
478
499
|
this.resolvedNodeModulesPath
|
package/package.json
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oroinc/oro-webpack-config-builder",
|
|
3
|
-
"version": "5.1.0-
|
|
3
|
+
"version": "5.1.0-alpha52",
|
|
4
4
|
"author": "Oro, Inc (https://www.oroinc.com)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "An integration of OroPlatform based applications with the Webpack.",
|
|
7
7
|
"main": "oro-webpack-config.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@babel/core": "
|
|
10
|
-
"@babel/plugin-transform-runtime": "
|
|
11
|
-
"@babel/preset-env": "~7.
|
|
12
|
-
"autoprefixer": "
|
|
13
|
-
"babel-loader": "~
|
|
9
|
+
"@babel/core": "~7.21.3",
|
|
10
|
+
"@babel/plugin-transform-runtime": "~7.21.0",
|
|
11
|
+
"@babel/preset-env": "~7.21.2",
|
|
12
|
+
"autoprefixer": "~10.4.13",
|
|
13
|
+
"babel-loader": "~9.1.0",
|
|
14
14
|
"bindings": "~1.5.0",
|
|
15
15
|
"css-loader": "^6.7.3",
|
|
16
|
-
"css-minimizer-webpack-plugin": "~
|
|
17
|
-
"deepmerge": "~4.
|
|
16
|
+
"css-minimizer-webpack-plugin": "~5.0.0",
|
|
17
|
+
"deepmerge": "~4.3.1",
|
|
18
18
|
"exports-loader": "~4.0.0",
|
|
19
|
-
"expose-loader": "~4.
|
|
19
|
+
"expose-loader": "~4.1.0",
|
|
20
20
|
"file-loader": "~6.2.0",
|
|
21
21
|
"happypack": "~5.0.1",
|
|
22
22
|
"html-webpack-plugin": "~5.5.0",
|
|
23
|
-
"imports-loader": "~4.0.
|
|
23
|
+
"imports-loader": "~4.0.1",
|
|
24
24
|
"js-yaml": "~4.1.0",
|
|
25
|
-
"mini-css-extract-plugin": "
|
|
26
|
-
"minimist": "
|
|
27
|
-
"
|
|
25
|
+
"mini-css-extract-plugin": "~2.7.1",
|
|
26
|
+
"minimist": "~1.2.7",
|
|
27
|
+
"modify-source-webpack-plugin": "^4.1.0",
|
|
28
|
+
"nan": "~2.17.0",
|
|
28
29
|
"path": "0.12.7",
|
|
29
|
-
"postcss": "~8.4.
|
|
30
|
-
"postcss-loader": "
|
|
30
|
+
"postcss": "~8.4.23",
|
|
31
|
+
"postcss-loader": "~7.2.4",
|
|
31
32
|
"printf": "~0.6.0",
|
|
32
33
|
"resolve-url-loader": "^5.0.0",
|
|
33
34
|
"rtlcss-webpack-plugin": "~4.0.6",
|
|
34
|
-
"sass": "
|
|
35
|
+
"sass": "~1.62.0",
|
|
35
36
|
"sass-loader": "~13.2.0",
|
|
36
37
|
"schema-utils": "^4.0.0",
|
|
37
38
|
"style-loader": "~3.3.1",
|
|
38
|
-
"terser": "
|
|
39
|
+
"terser": "~5.17.1",
|
|
39
40
|
"text-loader": "0.0.1",
|
|
40
|
-
"underscore": "
|
|
41
|
-
"url-loader": "
|
|
42
|
-
"webpack": "
|
|
43
|
-
"webpack-bundle-analyzer": "
|
|
44
|
-
"webpack-cli": "~
|
|
41
|
+
"underscore": "1.13.*",
|
|
42
|
+
"url-loader": "~4.1.1",
|
|
43
|
+
"webpack": "~5.80.0",
|
|
44
|
+
"webpack-bundle-analyzer": "~4.8.0",
|
|
45
|
+
"webpack-cli": "~5.0.0",
|
|
45
46
|
"webpack-dev-server": "^4.11.1",
|
|
46
47
|
"webpack-merge": "~5.8.0",
|
|
47
48
|
"wildcard": "~2.0.0"
|