Skip to content

Commit d56e700

Browse files
committed
chore: add example note to demo webpack config
1 parent 00ac983 commit d56e700

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

packages/plugin-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/plugin-tools",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "NativeScript plugin tooling for workspaces",
55
"homepage": "https://nativescript.org",
66
"repository": {

packages/plugin-tools/src/migrations/update-2-0-0/_files_demo/webpack.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ module.exports = (env) => {
1111
config.resolve.alias.set('@demo/shared', resolve(__dirname, '..', '..', 'tools', 'demo'));
1212
});
1313

14-
webpack.Utils.addCopyRule({
15-
from: '../../../tools/images',
16-
to: 'images',
17-
context: webpack.Utils.project.getProjectFilePath('node_modules')
18-
});
14+
// Example if you need to share images across demo apps:
15+
// webpack.Utils.addCopyRule({
16+
// from: '../../../tools/images',
17+
// to: 'images',
18+
// context: webpack.Utils.project.getProjectFilePath('node_modules')
19+
// });
1920

2021
return webpack.resolveConfig();
2122
};

packages/plugin-tools/src/migrations/update-2-0-0/_files_demo_angular/webpack.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ module.exports = (env) => {
1111
config.resolve.alias.set('@demo/shared', resolve(__dirname, '..', '..', 'tools', 'demo'));
1212
});
1313

14-
webpack.Utils.addCopyRule({
15-
from: '../../../tools/images',
16-
to: 'images',
17-
context: webpack.Utils.project.getProjectFilePath('node_modules')
18-
});
14+
// Example if you need to share images across demo apps:
15+
// webpack.Utils.addCopyRule({
16+
// from: '../../../tools/images',
17+
// to: 'images',
18+
// context: webpack.Utils.project.getProjectFilePath('node_modules')
19+
// });
1920

2021
return webpack.resolveConfig();
2122
};

0 commit comments

Comments
 (0)