chore: add apps for profiling

This commit is contained in:
shirakaba
2022-12-17 16:53:07 +09:00
parent fe60cfac04
commit 2d0c3ff6a9
40 changed files with 822 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
const webpack = require('@nativescript/webpack');
const { resolve } = require('path');
module.exports = (env) => {
webpack.init(env);
webpack.useConfig('typescript');
webpack.chainWebpack((config) => {
// shared demo code
config.resolve.alias.set(
'@demo/shared',
resolve(__dirname, '..', '..', 'tools', 'demo')
);
});
// Example if you need to share images across demo apps:
// webpack.Utils.addCopyRule({
// from: '../../../tools/images',
// to: 'images',
// context: webpack.Utils.project.getProjectFilePath('node_modules')
// });
return webpack.resolveConfig();
};