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

Commit f9f0b1b

Browse files
committed
fix: don't copy app_resources to the platforms folder
1 parent f251758 commit f9f0b1b

File tree

5 files changed

+1
-50
lines changed

5 files changed

+1
-50
lines changed

demo/AngularApp/webpack.config.js

Lines changed: 1 addition & 1 deletion
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({

templates/webpack.angular.js

Lines changed: 0 additions & 13 deletions
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({

templates/webpack.javascript.js

Lines changed: 0 additions & 12 deletions
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({

templates/webpack.typescript.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,18 +254,6 @@ module.exports = env => {
254254
],
255255
};
256256

257-
// Copy the native app resources to the out dir
258-
// only if doing a full build (tns run/build) and not previewing (tns preview)
259-
if (!externals || externals.length === 0) {
260-
config.plugins.push(new CopyWebpackPlugin([
261-
{
262-
from: `${appResourcesFullPath}/${appResourcesPlatformDir}`,
263-
to: `${dist}/App_Resources/${appResourcesPlatformDir}`,
264-
context: projectRoot
265-
},
266-
]));
267-
}
268-
269257
if (report) {
270258
// Generate report files for bundles content
271259
config.plugins.push(new BundleAnalyzerPlugin({

templates/webpack.vue.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -271,18 +271,6 @@ module.exports = env => {
271271
);
272272
}
273273

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

0 commit comments

Comments
 (0)