@oroinc/oro-webpack-config-builder 6.1.0-lts11 → 6.1.0-lts13
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 +7 -4
- package/package.json +1 -1
package/oro-webpack-config.js
CHANGED
|
@@ -213,7 +213,10 @@ class ConfigBuilder {
|
|
|
213
213
|
|
|
214
214
|
get localResolvedNodeModulesPath() {
|
|
215
215
|
if (this._localResolvedNodeModulesPath === undefined) {
|
|
216
|
-
this._localResolvedNodeModulesPath =
|
|
216
|
+
this._localResolvedNodeModulesPath = [
|
|
217
|
+
path.resolve(__dirname, '../..'),
|
|
218
|
+
path.resolve(__dirname, 'node_modules')
|
|
219
|
+
];
|
|
217
220
|
}
|
|
218
221
|
return this._localResolvedNodeModulesPath;
|
|
219
222
|
}
|
|
@@ -323,7 +326,7 @@ class ConfigBuilder {
|
|
|
323
326
|
path.join(__dirname, './loader'),
|
|
324
327
|
path.join(this.resolvedPublicPath, '/bundles'),
|
|
325
328
|
this.resolvedNodeModulesPath,
|
|
326
|
-
this.localResolvedNodeModulesPath
|
|
329
|
+
...this.localResolvedNodeModulesPath
|
|
327
330
|
]
|
|
328
331
|
},
|
|
329
332
|
module: {
|
|
@@ -338,7 +341,7 @@ class ConfigBuilder {
|
|
|
338
341
|
limit: 1,
|
|
339
342
|
emitFile: true,
|
|
340
343
|
outputPath: '../_static/',
|
|
341
|
-
publicPath: '
|
|
344
|
+
publicPath: '/build/_static/',
|
|
342
345
|
name: this._getVersionedPath('[path][name].[ext]', this.assetVersion)
|
|
343
346
|
}
|
|
344
347
|
}
|
|
@@ -495,7 +498,7 @@ class ConfigBuilder {
|
|
|
495
498
|
path.join(this.resolvedPublicPath, '/bundles'),
|
|
496
499
|
path.join(this.resolvedPublicPath, '/js'),
|
|
497
500
|
this.resolvedNodeModulesPath,
|
|
498
|
-
this.localResolvedNodeModulesPath
|
|
501
|
+
...this.localResolvedNodeModulesPath
|
|
499
502
|
],
|
|
500
503
|
alias: jsBuildConfig.aliases,
|
|
501
504
|
cacheWithContext: true,
|
package/package.json
CHANGED