Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

fix: execute bundle-config-loader only for the entry point of the application #829

Merged
merged 3 commits into from
Mar 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/webpack.angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ module.exports = env => {
module: {
rules: [
{
test: new RegExp(entryPath),
test: new RegExp(join(appFullPath, entryPath)),
use: [
// Require all Android app components
platform === "android" && {
Expand Down
2 changes: 1 addition & 1 deletion templates/webpack.javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ module.exports = env => {
module: {
rules: [
{
test: new RegExp(entryPath),
test: new RegExp(join(appFullPath, entryPath)),
use: [
// Require all Android app components
platform === "android" && {
Expand Down
2 changes: 1 addition & 1 deletion templates/webpack.typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module.exports = env => {
module: {
rules: [
{
test: new RegExp(entryPath),
test: new RegExp(join(appFullPath, entryPath)),
use: [
// Require all Android app components
platform === "android" && {
Expand Down
4 changes: 2 additions & 2 deletions templates/webpack.vue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { relative, resolve, sep } = require("path");
const { join, relative, resolve, sep } = require("path");

const webpack = require("webpack");
const CleanWebpackPlugin = require("clean-webpack-plugin");
Expand Down Expand Up @@ -154,7 +154,7 @@ module.exports = env => {
},
module: {
rules: [{
test: new RegExp(entryPath + ".(js|ts)"),
test: new RegExp(join(appFullPath, entryPath + ".(js|ts)")),
use: [
// Require all Android app components
platform === "android" && {
Expand Down