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

Commit 98af6b5

Browse files
committed
fix: don't copy app_resources to the platforms folder
1 parent a2332be commit 98af6b5

File tree

5 files changed

+1
-50
lines changed

5 files changed

+1
-50
lines changed

Diff for: demo/AngularApp/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ module.exports = env => {
286286
]));
287287
}
288288

289-
289+
290290
if (report) {
291291
// Generate report files for bundles content
292292
config.plugins.push(new BundleAnalyzerPlugin({

Diff for: templates/webpack.angular.js

-13
Original file line numberDiff line numberDiff line change
@@ -279,19 +279,6 @@ module.exports = env => {
279279
],
280280
};
281281

282-
// Copy the native app resources to the out dir
283-
// only if doing a full build (tns run/build) and not previewing (tns preview)
284-
if (!externals || externals.length === 0) {
285-
config.plugins.push(new CopyWebpackPlugin([
286-
{
287-
from: `${appResourcesFullPath}/${appResourcesPlatformDir}`,
288-
to: `${dist}/App_Resources/${appResourcesPlatformDir}`,
289-
context: projectRoot
290-
},
291-
]));
292-
}
293-
294-
295282
if (report) {
296283
// Generate report files for bundles content
297284
config.plugins.push(new BundleAnalyzerPlugin({

Diff for: templates/webpack.javascript.js

-12
Original file line numberDiff line numberDiff line change
@@ -234,18 +234,6 @@ module.exports = env => {
234234
],
235235
};
236236

237-
// Copy the native app resources to the out dir
238-
// only if doing a full build (tns run/build) and not previewing (tns preview)
239-
if (!externals || externals.length === 0) {
240-
config.plugins.push(new CopyWebpackPlugin([
241-
{
242-
from: `${appResourcesFullPath}/${appResourcesPlatformDir}`,
243-
to: `${dist}/App_Resources/${appResourcesPlatformDir}`,
244-
context: projectRoot
245-
},
246-
]));
247-
}
248-
249237
if (report) {
250238
// Generate report files for bundles content
251239
config.plugins.push(new BundleAnalyzerPlugin({

Diff for: templates/webpack.typescript.js

-12
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,6 @@ module.exports = env => {
265265
],
266266
};
267267

268-
// Copy the native app resources to the out dir
269-
// only if doing a full build (tns run/build) and not previewing (tns preview)
270-
if (!externals || externals.length === 0) {
271-
config.plugins.push(new CopyWebpackPlugin([
272-
{
273-
from: `${appResourcesFullPath}/${appResourcesPlatformDir}`,
274-
to: `${dist}/App_Resources/${appResourcesPlatformDir}`,
275-
context: projectRoot
276-
},
277-
]));
278-
}
279-
280268
if (report) {
281269
// Generate report files for bundles content
282270
config.plugins.push(new BundleAnalyzerPlugin({

Diff for: templates/webpack.vue.js

-12
Original file line numberDiff line numberDiff line change
@@ -274,18 +274,6 @@ module.exports = env => {
274274
);
275275
}
276276

277-
// Copy the native app resources to the out dir
278-
// only if doing a full build (tns run/build) and not previewing (tns preview)
279-
if (!externals || externals.length === 0) {
280-
config.plugins.push(new CopyWebpackPlugin([
281-
{
282-
from: `${appResourcesFullPath}/${appResourcesPlatformDir}`,
283-
to: `${dist}/App_Resources/${appResourcesPlatformDir}`,
284-
context: projectRoot
285-
},
286-
]));
287-
}
288-
289277
if (report) {
290278
// Generate report files for bundles content
291279
config.plugins.push(new BundleAnalyzerPlugin({

0 commit comments

Comments
 (0)